]> granicus.if.org Git - php/commitdiff
- fix php_date_llabs declaration
authorPierre Joye <pajoye@php.net>
Thu, 11 Feb 2010 22:37:50 +0000 (22:37 +0000)
committerPierre Joye <pajoye@php.net>
Thu, 11 Feb 2010 22:37:50 +0000 (22:37 +0000)
ext/date/php_date.c

index 5803ad05e79694276465843c70c3cdf2892eae9a..68fcc7463a21ec8725dd80b178b165dd4ff903ba 100644 (file)
 #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