mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fix for OS X 10.5 compile error wrt llabs()
GCC < 4.1.0 possibly has a problem w/ choosing an llabs() unambigiously from stdlib.h and cstdlib See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13943
This commit is contained in:
parent
e1ebf81f76
commit
3f6aa735e9
3 changed files with 33 additions and 1 deletions
|
@ -524,7 +524,11 @@ Val* Val::SizeVal() const
|
|||
{
|
||||
switch ( type->InternalType() ) {
|
||||
case TYPE_INTERNAL_INT:
|
||||
#ifdef DARWIN_NO_LLABS
|
||||
return new Val(abs(val.int_val), TYPE_COUNT);
|
||||
#else
|
||||
return new Val(llabs(val.int_val), TYPE_COUNT);
|
||||
#endif
|
||||
|
||||
case TYPE_INTERNAL_UNSIGNED:
|
||||
return new Val(val.uint_val, TYPE_COUNT);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue