From a9d0187b1112ecf98518ff0611bf625ed6d96eeb Mon Sep 17 00:00:00 2001 From: Weida Hong Date: Thu, 29 Mar 2018 18:37:20 +0800 Subject: [PATCH] Fix assertion related compile failure static_assert is declared in assert.h and should only be used after c11. --- xdelta3/Makefile.am | 2 +- xdelta3/xdelta3.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xdelta3/Makefile.am b/xdelta3/Makefile.am index 2d9f6db1..24cfdbe8 100644 --- a/xdelta3/Makefile.am +++ b/xdelta3/Makefile.am @@ -73,7 +73,7 @@ WFLAGS = -Wall -Wshadow -fno-builtin -Wextra -Wsign-compare \ # -Wno-variadic-macros \ # -Wno-c++98-compat-pedantic -C_WFLAGS = $(WFLAGS) -std=c99 +C_WFLAGS = $(WFLAGS) -std=c11 CXX_WFLAGS = $(WFLAGS) -std=c++11 common_CFLAGS = \ diff --git a/xdelta3/xdelta3.h b/xdelta3/xdelta3.h index b9b6fe02..c2fdf481 100644 --- a/xdelta3/xdelta3.h +++ b/xdelta3/xdelta3.h @@ -30,6 +30,7 @@ #include "config.h" #endif +#include #include #include #include