Browse Source

- Fixed bug #50266 (conflicting types for llabs)

PHP-5.2.1RC1
Jani Taskinen 17 years ago
parent
commit
87230feb91
  1. 3
      NEWS
  2. 2
      ext/date/config0.m4
  3. 12
      ext/date/php_date.c

3
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)

2
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 <<EOF
#ifdef PHP_WIN32
# include "config.w32.h"

12
ext/date/php_date.c

@ -30,16 +30,14 @@
#include "lib/timelib.h"
#include <time.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 */

Loading…
Cancel
Save