Skip to content

Commit

Permalink
Compile C files with C99.
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottslaughter committed Aug 23, 2019
1 parent 31674ec commit 159930e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ endif
ifneq ($(LLVM_VERSION), 32)
CPPFLAGS += -std=c++11
endif
CFLAGS += -std=c99


ifneq ($(findstring $(UNAME), Linux FreeBSD),)
Expand Down Expand Up @@ -286,7 +287,7 @@ build/%.o: src/%.cpp $(PACKAGE_DEPS)
$(CXX) $(FLAGS) $(CPPFLAGS) $< -c -o $@

build/%.o: src/%.c $(PACKAGE_DEPS)
$(CC) $(FLAGS) $< -c -o $@
$(CC) $(FLAGS) $(CFLAGS) $< -c -o $@

download: build/$(LUA_TAR)

Expand Down

0 comments on commit 159930e

Please sign in to comment.