Commit 352135e5 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Protect externs from inappropriate macro expansion.

parent fffc29df
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment