]> granicus.if.org Git - php/commitdiff
replace llabs with imaxabs
authorAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 16:54:54 +0000 (18:54 +0200)
committerAnatol Belski <ab@php.net>
Thu, 28 Aug 2014 16:58:24 +0000 (18:58 +0200)
both are gcc built-in but imaxabs doesn't require C99 compat (see man)

Zend/zend_long.h

index b30759a73257a588d7df04e37a8ec5ac8e0161f7..ac270c719b3ff5e8444512d56bda27d2a3ff40bf 100644 (file)
@@ -85,7 +85,7 @@ typedef int32_t zend_off_t;
 #  define ZEND_STRTOUL(s0, s1, base) strtoull((s0), (s1), (base))
 #  define ZEND_STRTOL_PTR strtoll
 #  define ZEND_STRTOUL_PTR strtoull
-#  define ZEND_ABS llabs
+#  define ZEND_ABS imaxabs
 # endif
 #else
 # define ZEND_STRTOL(s0, s1, base) strtol((s0), (s1), (base))