Skip to content

Commit ddce628

Browse files
committed
Fix configure check for typeof
1 parent e0eb5e0 commit ddce628

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

config/c-compiler.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ if test "$pgac_cv_c_typeof" != no; then
199199
AC_DEFINE(HAVE_TYPEOF, 1,
200200
[Define to 1 if your compiler understands `typeof' or something similar.])
201201
if test "$pgac_cv_c_typeof" != typeof; then
202-
AC_DEFINE(typeof, $pgac_cv_c_typeof, [Define to how the compiler spells `typeof'.])
202+
AC_DEFINE_UNQUOTED(typeof, $pgac_cv_c_typeof, [Define to how the compiler spells `typeof'.])
203203
fi
204204
fi])# PGAC_C_TYPEOF
205205

configure

+3-1
Original file line numberDiff line numberDiff line change
@@ -11704,7 +11704,9 @@ $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
1170411704

1170511705
if test "$pgac_cv_c_typeof" != typeof; then
1170611706

11707-
$as_echo "#define typeof \$pgac_cv_c_typeof" >>confdefs.h
11707+
cat >>confdefs.h <<_ACEOF
11708+
#define typeof $pgac_cv_c_typeof
11709+
_ACEOF
1170811710

1170911711
fi
1171011712
fi

0 commit comments

Comments
 (0)