diff options
-rw-r--r-- | configure.ac | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index fae94798..7d3f8cde 100644 --- a/configure.ac +++ b/configure.ac @@ -335,7 +335,8 @@ AC_C_BIGENDIAN AC_C_INLINE AC_MSG_CHECKING(whether __FUNCTION__ is available) -AC_COMPILE_IFELSE([AC_LANG_SOURCE([int main() { printf(__FUNCTION__); }])], +AC_COMPILE_IFELSE([AC_LANG_SOURCE([#include <stdio.h> +int main(void) { printf(__FUNCTION__); }])], [AC_DEFINE([HAVE___FUNCTION__], [1], [Is __FUNCTION__ available]) AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)]) @@ -419,7 +420,7 @@ AC_COMPILE_IFELSE([AC_LANG_SOURCE([ #ifdef HAVE_STRING_H #include <string.h> #endif -int main() { return strtok_r(); } +int main(void) { return strtok_r(); } ])], [AC_MSG_RESULT(yes) have_strtok_r=yes |