mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFH: fix #34977 (Compile failure on MacOSX due to use of varargs.h)
This commit is contained in:
parent
143d1c8011
commit
b122cd4b08
1
NEWS
1
NEWS
@ -2,6 +2,7 @@ PHP NEWS
|
|||||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||
?? Oct 2005, PHP 5.1 Release Candidate 4
|
?? Oct 2005, PHP 5.1 Release Candidate 4
|
||||||
- Fixed fgetcsv() and fputcsv() inconsistency. (Dmitry)
|
- Fixed fgetcsv() and fputcsv() inconsistency. (Dmitry)
|
||||||
|
- Fixed bug #34977 (Compile failure on MacOSX due to use of varargs.h). (Tony)
|
||||||
- Fixed bug #34968 (bz2 extension fails on to build on some win32 setups).
|
- Fixed bug #34968 (bz2 extension fails on to build on some win32 setups).
|
||||||
(Ilia)
|
(Ilia)
|
||||||
- Fixed bug #34965 (tidy is not binary safe). (Mike)
|
- Fixed bug #34965 (tidy is not binary safe). (Mike)
|
||||||
|
@ -61,7 +61,8 @@ EOF
|
|||||||
AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
|
AC_DEFUN([PHP_MBSTRING_SETUP_MBREGEX], [
|
||||||
if test "$PHP_MBREGEX" = "yes"; then
|
if test "$PHP_MBREGEX" = "yes"; then
|
||||||
AC_CACHE_CHECK(for variable length prototypes and stdarg.h, cv_php_mbstring_stdarg, [
|
AC_CACHE_CHECK(for variable length prototypes and stdarg.h, cv_php_mbstring_stdarg, [
|
||||||
AC_TRY_COMPILE([#include <stdarg.h>], [
|
AC_TRY_RUN([
|
||||||
|
#include <stdarg.h>
|
||||||
int foo(int x, ...) {
|
int foo(int x, ...) {
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start(va, x);
|
va_start(va, x);
|
||||||
@ -71,7 +72,7 @@ int foo(int x, ...) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int main() { return foo(10, "", 3.14); }
|
int main() { return foo(10, "", 3.14); }
|
||||||
], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no])
|
], [cv_php_mbstring_stdarg=yes], [cv_php_mbstring_stdarg=no], [cv_php_mbstring_stdarg=no])
|
||||||
])
|
])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h])
|
AC_CHECK_HEADERS([stdlib.h string.h strings.h unistd.h sys/time.h sys/times.h])
|
||||||
|
Loading…
Reference in New Issue
Block a user