configure.ac: Fix inline function test

fixes #1171
This commit is contained in:
Samuel Thibault
2022-04-24 18:46:27 +02:00
parent ffb0d2b66b
commit a25849e4d5
+2 -2
View File
@@ -97,7 +97,7 @@ AC_LANG_PUSH(C)
AC_MSG_CHECKING([if $CC supports C99 without any flags])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[static inline int c99_restrict(int *restrict c99_restrict) {}]],
[[static inline void c99_restrict(int *restrict c99_restrict) {}]],
[[]])],
[AC_MSG_RESULT([yes])
have_c99_native=yes],
@@ -111,7 +111,7 @@ CFLAGS="$CFLAGS -std=c99"
AC_MSG_CHECKING([if $CC supports C99 with the -std=c99 flag])
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[[static inline int c99_restrict(int *restrict c99_restrict) {}]],
[[static inline void c99_restrict(int *restrict c99_restrict) {}]],
[[]])],
[AC_MSG_RESULT([yes])
have_c99_c99=yes],