- 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:
foobar 2005-07-03 23:30:52 +00:00
parent 422f14cb0f
commit 19b6ffed3c
3 changed files with 8 additions and 8 deletions

View File

@ -77,4 +77,4 @@ stdlib.h
])
dnl Check for strtoll, atoll
AC_CHECK_FUNCS(strtoll atoll)
AC_CHECK_FUNCS(strtoll atoll strftime)

View File

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

View File

@ -33,7 +33,7 @@ PHP_FUNCTION(gmmktime);
PHP_FUNCTION(checkdate);
#if HAVE_STRFTIME
#ifdef HAVE_STRFTIME
PHP_FUNCTION(strftime);
PHP_FUNCTION(gmstrftime);
#endif