Skip to content

Commit

Permalink
C is not C++
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker committed Jun 28, 2024
1 parent 1c0dace commit 70cc5b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ LDFLAGS= -lm -pthread
COMMON= -Iinclude/ -I3rdparty/stb/include
CFLAGS=-Wall -Wno-unused-parameter -Wno-unknown-pragmas -fPIC -rdynamic

ifneq ($(USE_CPP), 1)
ifeq ($(USE_CPP), 1)
# C is not C++
CFLAGS+=-fpermissive
else
CFLAGS+=-Wextra
endif

Expand Down

0 comments on commit 70cc5b5

Please sign in to comment.