From: Eric Biggers Date: Tue, 30 Dec 2014 03:31:51 +0000 (-0600) Subject: Restore -std=gnu99 instead of -std=c99 X-Git-Tag: v1.7.4~3 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=c6dd8b5d4f3b9711be41008618253701055e5921 Restore -std=gnu99 instead of -std=c99 --- diff --git a/Makefile.am b/Makefile.am index 0893ef66..96878d47 100644 --- a/Makefile.am +++ b/Makefile.am @@ -8,7 +8,10 @@ ACLOCAL_AMFLAGS = -I m4 AM_CPPFLAGS = -I$(top_srcdir)/include $(PLATFORM_CPPFLAGS) \ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -AM_CFLAGS = -std=c99 $(PLATFORM_CFLAGS) -fno-common \ +# Note: -std=gnu99 instead of -std=c99 is needed for unnamed structs and unions, +# which are in C11 but not C99. But we can't yet actually use -std=c11 because +# we want to support older versions of gcc. +AM_CFLAGS = -std=gnu99 $(PLATFORM_CFLAGS) -fno-common \ -Wmissing-prototypes -Wstrict-prototypes \ -Wundef -Wno-pointer-sign