Skip to content

Commit 2e5546d

Browse files
author
Jani Taskinen
committed
- Fixed bug #50266 (conflicting types for llabs)
1 parent e8e213c commit 2e5546d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ PHP NEWS
2929
- Fixed bug #50282 (xmlrpc_encode_request() changes object into array in
3030
calling function). (Felipe)
3131
- Fixed bug #50267 (get_browser(null) does not use HTTP_USER_AGENT). (Jani)
32+
- Fixed bug #50266 (conflicting types for llabs). (Jani)
3233
- Fixed bug #50255 (isset() and empty() silently casts array to object).
3334
(Felipe)
3435
- Fixed bug #50240 (pdo_mysql.default_socket in php.ini shouldn't used

ext/date/config0.m4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ PHP_ADD_INCLUDE([$ext_srcdir/lib])
1616

1717
PHP_INSTALL_HEADERS([ext/date], [php_date.h lib/timelib.h lib/timelib_structs.h lib/timelib_config.h])
1818

19+
AC_CHECK_FUNCS([llabs])
20+
1921
cat > $ext_builddir/lib/timelib_config.h <<EOF
2022
#ifdef PHP_WIN32
2123
# include "config.w32.h"

ext/date/php_date.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
# include "win32/php_stdint.h"
3636
#endif
3737

38-
#if defined(__GNUC__) && __GNUC__ < 3
38+
#ifndef HAVE_LLABS
39+
# if defined(__GNUC__) && __GNUC__ < 3
3940
static __inline __int64_t llabs( __int64_t i ) { return i >= 0 ? i : -i; }
40-
#endif
41-
42-
#if defined(NETWARE) && defined(__MWERKS__)
41+
# elif defined(NETWARE) && defined(__MWERKS__)
4342
static __inline long long llabs( long long i ) { return i >= 0 ? i : -i; }
43+
# endif
4444
#endif
4545

4646
/* {{{ arginfo */

0 commit comments

Comments
 (0)