diff options
author | Rui Hirokawa <hirokawa@php.net> | 2007-09-18 21:35:39 +0000 |
---|---|---|
committer | Rui Hirokawa <hirokawa@php.net> | 2007-09-18 21:35:39 +0000 |
commit | beeddd8873d3a594ba7c9426e8081ca4532f775c (patch) | |
tree | 3d570c2f1397db00e53620f2effd44b6c77b25f5 | |
parent | 507112e44d6be45eca169233191136bc2a6f2a49 (diff) | |
download | php-git-beeddd8873d3a594ba7c9426e8081ca4532f775c.tar.gz |
MFH: fixed bug #42502 va_* cannot detect.
-rw-r--r-- | ext/mbstring/config.m4 | 5 | ||||
-rw-r--r-- | ext/mbstring/oniguruma/php_onig_compat.h | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/ext/mbstring/config.m4 b/ext/mbstring/config.m4 index 3465021e17..8c9246f6d6 100644 --- a/ext/mbstring/config.m4 +++ b/ext/mbstring/config.m4 @@ -87,7 +87,7 @@ esac ) ]) - 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 stdarg.h]) AC_CHECK_SIZEOF(int, 4) AC_CHECK_SIZEOF(short, 2) AC_CHECK_SIZEOF(long, 4) @@ -96,9 +96,6 @@ esac AC_FUNC_ALLOCA AC_FUNC_MEMCMP - if test "$cv_php_mbstring_stdarg" = "yes"; then - AC_DEFINE([HAVE_STDARG_PROTOTYPES], 1, [Define if stdarg.h is available]) - fi AC_DEFINE([HAVE_MBREGEX], 1, [whether to have multibyte regex support]) diff --git a/ext/mbstring/oniguruma/php_onig_compat.h b/ext/mbstring/oniguruma/php_onig_compat.h index 1de0d6073d..94ece40ef2 100644 --- a/ext/mbstring/oniguruma/php_onig_compat.h +++ b/ext/mbstring/oniguruma/php_onig_compat.h @@ -5,4 +5,10 @@ #define regex_t php_mb_regex_t #define re_registers php_mb_re_registers +#ifdef HAVE_STDARG_H +#ifndef HAVE_STDARG_PROTOTYPES +#define HAVE_STDARG_PROTOTYPES 1 +#endif +#endif + #endif /* _PHP_MBREGEX_COMPAT_H */ |