From fbd645b2dd9381f155f0b2e3692c1573cb98fbab Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 7 Mar 2019 21:13:19 +0100 Subject: [PATCH] Use C99 to compile Expat sources under Unix Expat requires C99 and doesn't compile without the appropriate command line option at least under Solaris as is not available without it there. Closes https://github.com/wxWidgets/wxWidgets/pull/1250 Closes #18352. --- Makefile.in | 3 +- build/bakefiles/expat.bkl | 2 + configure | 184 ++++++++++++++++++++++++++++++++++++++ configure.in | 11 +++ 4 files changed, 199 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 91d6281b53..4cd7651056 100644 --- a/Makefile.in +++ b/Makefile.in @@ -68,6 +68,7 @@ HOST_SUFFIX = @HOST_SUFFIX@ DYLIB_RPATH_INSTALL = @DYLIB_RPATH_INSTALL@ DYLIB_RPATH_POSTLINK = @DYLIB_RPATH_POSTLINK@ wx_top_builddir = @wx_top_builddir@ +wxCFLAGS_C99 = @wxCFLAGS_C99@ ### Variables: ### @@ -211,7 +212,7 @@ WXTIFF_OBJECTS = \ wxtiff_tif_zip.o \ wxtiff_tif_zstd.o WXEXPAT_CFLAGS = -DNDEBUG -I./src/expat/expat -DHAVE_EXPAT_CONFIG_H \ - $(____SHARED) $(CPPFLAGS) $(CFLAGS) + $(____SHARED) $(wxCFLAGS_C99) $(CPPFLAGS) $(CFLAGS) WXEXPAT_OBJECTS = \ wxexpat_xmlparse.o \ wxexpat_xmlrole.o \ diff --git a/build/bakefiles/expat.bkl b/build/bakefiles/expat.bkl index 5cef4ed12e..0f01e4da55 100644 --- a/build/bakefiles/expat.bkl +++ b/build/bakefiles/expat.bkl @@ -4,6 +4,7 @@