Skip to content

Commit

Permalink
Fix configure check for typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
petere committed Mar 29, 2017
1 parent e0eb5e0 commit ddce628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/c-compiler.m4
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ if test "$pgac_cv_c_typeof" != no; then
AC_DEFINE(HAVE_TYPEOF, 1,
[Define to 1 if your compiler understands `typeof' or something similar.])
if test "$pgac_cv_c_typeof" != typeof; then
AC_DEFINE(typeof, $pgac_cv_c_typeof, [Define to how the compiler spells `typeof'.])
AC_DEFINE_UNQUOTED(typeof, $pgac_cv_c_typeof, [Define to how the compiler spells `typeof'.])
fi
fi])# PGAC_C_TYPEOF

Expand Down
4 changes: 3 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -11704,7 +11704,9 @@ $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h

if test "$pgac_cv_c_typeof" != typeof; then

$as_echo "#define typeof \$pgac_cv_c_typeof" >>confdefs.h
cat >>confdefs.h <<_ACEOF
#define typeof $pgac_cv_c_typeof
_ACEOF

fi
fi
Expand Down

0 comments on commit ddce628

Please sign in to comment.