uhexen2: fix build

uhexen2 isn't C23 conform because it defines its own `true` and `false`
values (which have been declared keywords in the latest C standard).
This causes build failures with the newest versions of GCC unless one
tells the compiler to use an older standard:

```
In file included from ./quakeinc.h:29,
                 from ./quakedef.h:224,
                 from ../h2shared/gl_rlight.c:25:
../../common/q_stdinc.h:128:9: error: cannot use keyword 'false' as enumeration constant
  128 |         false = 0,
      |         ^~~~~
../../common/q_stdinc.h:128:9: note: 'false' is a keyword with '-std=c23' onwards
```
This commit is contained in:
Manuel Frischknecht
2026-05-16 13:25:26 +02:00
parent 0ec9b63333
commit 6d9b6d565b
+2
View File
@@ -45,6 +45,8 @@ stdenv.mkDerivation {
)
'';
NIX_CFLAGS_COMPILE = "-std=gnu17";
buildPhase = ''
runHook preBuild
for makefile in "''${makeFiles[@]}"; do