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:
Jon Siwek 2011-01-06 17:06:51 -06:00
parent e1ebf81f76
commit 3f6aa735e9
3 changed files with 33 additions and 1 deletions

View file

@ -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);