mirror of
https://gitlab.com/skmp/dca3-game.git
synced 2025-04-28 13:07:59 +03:00
Build pvrtex using GNU(++) 17 standard
Recent distros feature GCC 15 which defaults to C23. ATOMIC_VAR_INIT has been removed from the C23 standard. This causes the following build failure: mem.c:72:39: fout: implicit declaration of function ‘ATOMIC_VAR_INIT’; did you mean ‘ATOMIC_FLAG_INIT’? [-Wimplicit-function-declaration] 72 | static atomic_size_t max_alloc_size = ATOMIC_VAR_INIT(INT_MAX); | ^~~~~~~~~~~~~~~ | ATOMIC_FLAG_INIT Workaround this by telling the compiler to build using GNU 17 instead.
This commit is contained in:
parent
24114d9a07
commit
a3ce1e4ed5
1 changed files with 2 additions and 2 deletions
4
vendor/pvrtex/Makefile
vendored
4
vendor/pvrtex/Makefile
vendored
|
@ -14,8 +14,8 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
MYFLAGS=-Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Ilibavutil -I. -DCONFIG_MEMORY_POISONING=0 -DHAVE_FAST_UNALIGNED=0
|
MYFLAGS=-Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Ilibavutil -I. -DCONFIG_MEMORY_POISONING=0 -DHAVE_FAST_UNALIGNED=0
|
||||||
MYCPPFLAGS=$(MYFLAGS)
|
MYCPPFLAGS=$(MYFLAGS) -std=gnu++17
|
||||||
MYCFLAGS=$(MYFLAGS) -Wno-pointer-sign
|
MYCFLAGS=$(MYFLAGS) -Wno-pointer-sign -std=gnu17
|
||||||
|
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue