Protect externs from inappropriate macro expansion.

This commit is contained in:
Kurt Zeilenga 1999-05-24 20:54:35 +00:00
parent fffc29df9b
commit 352135e58b
2 changed files with 3 additions and 3 deletions

View file

@ -635,7 +635,7 @@ AC_MSG_CHECKING([strdup declaration])
AC_CACHE_VAL(ol_cv_dcl_strdup,[
AC_TRY_COMPILE([
#include <string.h> ],
[extern char *strdup();],
[extern char *(strdup)();],
[ol_cv_dcl_strdup=yes],
[ol_cv_dcl_strdup=no])])
AC_MSG_RESULT($ol_cv_dcl_strdup)
@ -695,7 +695,7 @@ dnl check return type of ctime_r()
AC_DEFUN(OL_FUNC_CTIME_R_TYPE,
[AC_CACHE_CHECK(return type of ctime_r, ol_cv_func_ctime_r_type,
[AC_TRY_COMPILE([#include <time.h>],
[int ctime_r();],
[extern int (ctime_r)();],
ol_cv_func_ctime_r_type="int", ol_cv_func_ctime_r_type="charp")
])
if test $ol_cv_func_ctime_r_type = "int" ; then

2
configure vendored
View file

@ -11239,7 +11239,7 @@ else
#include <string.h>
int main() {
extern char *strdup();
extern char *(strdup)();
; return 0; }
EOF
if { (eval echo configure:11246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then