Skip to content
Browse files

5.2.13RC2

  • Loading branch information...
2 parents 57b3754 + f11c2a2 commit 0da769e590b6138271092e0d04d7383ced7af17c Ilia Alshanetsky committed Feb 12, 2010
Showing with 5 additions and 3 deletions.
  1. +5 −3 ext/date/php_date.c
View
8 ext/date/php_date.c
@@ -31,10 +31,12 @@
#include <time.h>
#ifdef PHP_WIN32
-# include "win32/php_stdint.h"
-#endif
-
+static __inline __int64 php_date_llabs( __int64 i ) { return i >= 0? i: -i; }
+#elif defined(__GNUC__) && __GNUC__ < 3
+static __inline __int64_t php_date_llabs( __int64_t i ) { return i >= 0 ? i : -i; }
+#else
static __inline long long php_date_llabs( long long i ) { return i >= 0 ? i : -i; }
+#endif
/* {{{ arginfo */
static

0 comments on commit 0da769e

Please sign in to comment.
Something went wrong with that request. Please try again.