build: Add -std=gnu99 to libglnx CFLAGS

It uses inline for loop initialisers, which are a C99 feature. Set
-std=gnu99 like ostree.git does for its libglnx submodule.

Based on a patch by Georges Basile Stavracas Neto
<georges.stavracas@gmail.com>.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
tingping/wmclass
Philip Withnall 2017-07-12 15:58:50 +01:00
parent eecdcbd195
commit 59e4e3f72b
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ libglnx_srcpath := $(srcdir)/libglnx
libglnx_cflags := \
$(BASE_CFLAGS) \
"-I$(libglnx_srcpath)" \
-std=gnu99 \
$(HIDDEN_VISIBILITY_CFLAGS) \
$(NULL)
libglnx_libs := $(BASE_LIBS)