From 5df2704cccd3fe50dbd8e643ec6bf76eb073257c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 12 Oct 2018 21:45:41 -0700 Subject: [PATCH] Compile h264bitstream as GNU99 on GCC --- h264bitstream/h264bitstream.pro | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/h264bitstream/h264bitstream.pro b/h264bitstream/h264bitstream.pro index fce797b4..4a6328dc 100644 --- a/h264bitstream/h264bitstream.pro +++ b/h264bitstream/h264bitstream.pro @@ -22,6 +22,11 @@ CONFIG += staticlib # Disable warnings CONFIG += warn_off +# Older GCC versions defaulted to GNU89 +*-g++ { + QMAKE_CFLAGS += -std=gnu99 +} + SRC_DIR = $$PWD/h264bitstream SOURCES += \