We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213667f commit cb3ad65Copy full SHA for cb3ad65
configure.ac
@@ -171,9 +171,15 @@ fi
171
if test "x$CFLAGS" = "x" ; then
172
no_CFLAGS="yes"
173
if test "x$GCC" = "xyes" ; then
174
- JE_CFLAGS_APPEND([-std=gnu99])
175
- if test "x$je_cv_cflags_appended" = "x-std=gnu99" ; then
+dnl JE_CFLAGS_APPEND([-std=gnu99])
+ JE_CFLAGS_APPEND([-std=gnu11])
176
+ if test "x$je_cv_cflags_appended" = "x-std=gnu11" ; then
177
AC_DEFINE_UNQUOTED([JEMALLOC_HAS_RESTRICT])
178
+ else
179
+ JE_CFLAGS_APPEND([-std=gnu99])
180
+ if test "x$je_cv_cflags_appended" = "x-std=gnu99" ; then
181
+ AC_DEFINE_UNQUOTED([JEMALLOC_HAS_RESTRICT])
182
+ fi
183
fi
184
JE_CFLAGS_APPEND([-Wall])
185
JE_CFLAGS_APPEND([-Werror=declaration-after-statement])
0 commit comments