mirror of https://github.com/bjornbytes/lovr.git
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:
parent
a6936b5649
commit
82b865d851
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue