summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2009-05-04 17:09:33 +0000
committerPierre Joye <pajoye@php.net>2009-05-04 17:09:33 +0000
commit65a953084900f7368addf9cce4101f5782ef31f9 (patch)
tree21f41dad7a5d918e5251a44c2595f4eefe03bc76
parentcbc9e850b97e60d2d604000aabec05448e976422 (diff)
downloadphp-git-65a953084900f7368addf9cce4101f5782ef31f9.tar.gz
- add llabs
-rw-r--r--win32/php_stdint.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/php_stdint.h b/win32/php_stdint.h
index 70909f0632..574f8e25f3 100644
--- a/win32/php_stdint.h
+++ b/win32/php_stdint.h
@@ -238,6 +238,8 @@ typedef uint64_t uintmax_t;
#define INTMAX_C INT64_C
#define UINTMAX_C UINT64_C
+static inline int64_t llabs( int64_t i ) { return i >= 0? i: -i; }
+
#endif // __STDC_CONSTANT_MACROS ]