]> granicus.if.org Git - php/commitdiff
- a macro will just do it too
authorPierre Joye <pajoye@php.net>
Mon, 4 May 2009 20:31:02 +0000 (20:31 +0000)
committerPierre Joye <pajoye@php.net>
Mon, 4 May 2009 20:31:02 +0000 (20:31 +0000)
win32/php_stdint.h

index 574f8e25f3febe199b1dd3fa98d6fd8ed1438d1d..6167596f46ad1ffe989ec2036d4f93309c34e1a6 100644 (file)
@@ -238,8 +238,7 @@ 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; }
-
+#define llabs(i) (i >= 0? i : -i)
 #endif // __STDC_CONSTANT_MACROS ]