mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
- Always use #ifdef when dealing with HAVE_* defines from AC_CHECK_FUNCS()
- Added check for strftime() also in the timelib configure
This commit is contained in:
parent
422f14cb0f
commit
19b6ffed3c
@ -77,4 +77,4 @@ stdlib.h
|
||||
])
|
||||
|
||||
dnl Check for strtoll, atoll
|
||||
AC_CHECK_FUNCS(strtoll atoll)
|
||||
AC_CHECK_FUNCS(strtoll atoll strftime)
|
||||
|
@ -33,12 +33,12 @@ function_entry date_functions[] = {
|
||||
PHP_FE(date, NULL)
|
||||
PHP_FE(gmdate, NULL)
|
||||
PHP_FE(mktime, NULL)
|
||||
PHP_FE(checkdate, NULL)
|
||||
PHP_FE(gmstrftime, NULL)
|
||||
|
||||
#if HAVE_STRFTIME
|
||||
PHP_FE(strftime, NULL)
|
||||
PHP_FE(gmmktime, NULL)
|
||||
PHP_FE(checkdate, NULL)
|
||||
|
||||
#ifdef HAVE_STRFTIME
|
||||
PHP_FE(strftime, NULL)
|
||||
PHP_FE(gmstrftime, NULL)
|
||||
#endif
|
||||
|
||||
PHP_FE(time, NULL)
|
||||
@ -548,7 +548,7 @@ PHP_FUNCTION(checkdate)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
#if HAVE_STRFTIME
|
||||
#ifdef HAVE_STRFTIME
|
||||
/* {{{ php_strftime
|
||||
*/
|
||||
PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt)
|
||||
|
@ -33,7 +33,7 @@ PHP_FUNCTION(gmmktime);
|
||||
|
||||
PHP_FUNCTION(checkdate);
|
||||
|
||||
#if HAVE_STRFTIME
|
||||
#ifdef HAVE_STRFTIME
|
||||
PHP_FUNCTION(strftime);
|
||||
PHP_FUNCTION(gmstrftime);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user