mbpfan-josie

Specify C99 standard

This allows // comments and for loop declarations.  Also specify some
feature test macros to access some system calls.  References #200.

8984322c0addc9fd929ffd8d6f1288a0452ce53f
Andrew Gaul <andrew@gaul.org> · 2019-10-27T17:03 · browse files at this commit

parents: 4722e79

diff --git a/Makefile b/Makefile
index f5766ab..be84021 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,7 @@ BINFLAG = -o
 INCLUDES =
 LIBS = -lm
 LIBPATH =
-CFLAGS +=  $(COPT) -g $(INCLUDES) -Wall -Wextra -Wno-unused-function
+CFLAGS += $(COPT) -g $(INCLUDES) -Wall -Wextra -Wno-unused-function -std=c99 -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500
 LDFLAGS += $(LIBPATH) -g $(LIBS) #-Wall
 
 OBJS := $(patsubst %.$(C),%.$(OBJ),$(wildcard $(SOURCE_PATH)*.$(C)))