From 87230feb9181eaa8b1bf654360a30008d3296ff2 Mon Sep 17 00:00:00 2001 From: Jani Taskinen Date: Sat, 28 Nov 2009 00:38:05 +0000 Subject: [PATCH] - Fixed bug #50266 (conflicting types for llabs) --- NEWS | 3 +++ ext/date/config0.m4 | 2 ++ ext/date/php_date.c | 12 +++++------- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/NEWS b/NEWS index 06ec2162a0..10ac56f416 100644 --- a/NEWS +++ b/NEWS @@ -1,10 +1,13 @@ PHP NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| ?? Dec 2009, PHP 5.2.12RC4 +- Fixed bug #50266 (conflicting types for llabs). (Jani) + 27 Nov 2009, PHP 5.2.12RC3 - Fixed break in the build chain introduced in 5.2.12RC2 (Jani) + 26 Nov 2009, PHP 5.2.12RC2 - Updated timezone database to version 2009.19 (2009s). (Derick) diff --git a/ext/date/config0.m4 b/ext/date/config0.m4 index cbd732f4ed..62a086bc08 100644 --- a/ext/date/config0.m4 +++ b/ext/date/config0.m4 @@ -16,6 +16,8 @@ PHP_ADD_INCLUDE([$ext_srcdir/lib]) PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h]) +AC_CHECK_FUNCS([llabs]) + cat > $ext_builddir/lib/timelib_config.h < -#ifdef PHP_WIN32 +#ifndef HAVE_LLABS +# ifdef PHP_WIN32 static __inline __int64 llabs( __int64 i ) { return i >= 0? i: -i; } -#endif - -#if defined(__GNUC__) && __GNUC__ < 3 +# elif defined(__GNUC__) && __GNUC__ < 3 static __inline __int64_t llabs( __int64_t i ) { return i >= 0 ? i : -i; } -#endif - -#if defined(NETWARE) && defined(__MWERKS__) +# elif defined(NETWARE) && defined(__MWERKS__) static __inline long long llabs( long long i ) { return i >= 0 ? i : -i; } +# endif #endif /* {{{ arginfo */ -- 2.50.1