From c6dd8b5d4f3b9711be41008618253701055e5921 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 29 Dec 2014 21:31:51 -0600 Subject: [PATCH] Restore -std=gnu99 instead of -std=c99 --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.43.0