Browse Source

configure.ac: Fix inline function test

fixes #1171
master
Samuel Thibault 3 years ago
parent
commit
a25849e4d5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      configure.ac

+ 2
- 2
configure.ac 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],

Loading…
Cancel
Save