Skip to content

Commit 6534b3e

Browse files
committed
Fix clang build.
Some math functions require c11 standard.
1 parent 0c875c7 commit 6534b3e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ DEPENDENCY_TARGETS=hiredis linenoise lua
2020
NODEPS:=clean distclean
2121

2222
# Default settings
23-
STD=-std=c99 -pedantic -DREDIS_STATIC=''
23+
ifneq ($(CC),clang)
24+
STD=-std=c99 -pedantic -DREDIS_STATIC=''
25+
else
26+
STD=-std=c11 -pedantic -DREDIS_STATIC=''
27+
endif
2428
WARN=-Wall -W -Wno-missing-field-initializers
2529
OPT=$(OPTIMIZATION)
2630

0 commit comments

Comments
 (0)