Skip to content

Commit

Permalink
Fix assertion related compile failure
Browse files Browse the repository at this point in the history
static_assert is declare in assert.h and should only be used after c11.
  • Loading branch information
wdhongtw committed Mar 29, 2018
1 parent 7508fd2 commit ddefc06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion xdelta3/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 = \
Expand Down
1 change: 1 addition & 0 deletions xdelta3/xdelta3.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include "config.h"
#endif

#include <assert.h>
#include <errno.h>
#include <stdarg.h>
#include <stddef.h>
Expand Down

0 comments on commit ddefc06

Please sign in to comment.