std=c99
authorhgn <hgodden00@gmail.com>
Sat, 14 May 2022 08:40:31 +0000 (09:40 +0100)
committerhgn <hgodden00@gmail.com>
Sat, 14 May 2022 08:40:31 +0000 (09:40 +0100)
vg_compiler.sh

index 11a4298c20fde3a642d39b1485586e84528f8ca0..89007f914d403c263a35297f22d959ccc117a25f 100755 (executable)
@@ -97,7 +97,7 @@ precompile_x(){
 
 compile_x(){
    paths="-I. -L./ -L$vg_root/dep/glfw -L$vg_root/dep/steam -I$vg_root/dep -I$vg_root/src"
-   setup="$target_compiler $opt_gcc -Wall -Wstrict-aliasing=3 -Wno-unused-function $paths"
+   setup="$target_compiler -std=c99 $opt_gcc -Wall -Wstrict-aliasing=3 -Wno-unused-function $paths"
    targets="$1 $vg_root/dep/glad/glad.c $target_miniaudio -o $2$target_ext"
    final="$target_libs -Wl,-rpath=./ $opt_steam"
    cmd="$setup $target_opts $targets $final"