Tuprules: Always use C99;

Now that we mostly use the clang/gcc atomics, just use c99 all the
time instead of conditionally changing the C standard.
This commit is contained in:
bjorn 2019-07-10 16:25:47 -07:00
parent a6936b5649
commit 82b865d851
1 changed files with 1 additions and 8 deletions

View File

@ -10,17 +10,10 @@ endif
# Warnings
# -Wno-typedef-redefinition is for OpenVR
# -Wno-unused-parameter is turned off just because it's kinda annoying
CFLAGS += -Werror -Wall -Wextra -pedantic
CFLAGS += -Werror -Wall -Wextra -pedantic -std=c99
CFLAGS += -Wno-typedef-redefinition
CFLAGS += -Wno-unused-parameter
# stdatomic.h is used for atomic refcounts when threads are enabled, and that's a C11 feature.
ifeq (@(THREAD),y)
CFLAGS += -std=c11
else
CFLAGS += -std=c99
endif
# Symbols are manually exported as-needed using the LOVR_EXPORT macro to reduce file size.
CFLAGS += -fvisibility=hidden