From cff8fb40a78448568015985f916d6ac1dced139b Mon Sep 17 00:00:00 2001 From: ole00 Date: Fri, 7 Apr 2023 18:44:35 +0100 Subject: [PATCH] PC app compilation scripts: use NO_CLOSE Force serial port not to be closed. --- compile.sh | 2 +- compile_win64.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.sh b/compile.sh index 9ed23ec..254c5bd 100755 --- a/compile.sh +++ b/compile.sh @@ -1 +1 @@ -gcc -g3 -O0 -o afterburner src_pc/afterburner.c +gcc -g3 -O0 -DNO_CLOSE -o afterburner src_pc/afterburner.c diff --git a/compile_win64.sh b/compile_win64.sh index 5fd26f1..3bc90f4 100755 --- a/compile_win64.sh +++ b/compile_win64.sh @@ -1,4 +1,4 @@ # path to your Win64 cross-compiler CC=~/opt/mingw64/bin/x86_64-w64-mingw32-gcc -$CC -g3 -O0 -o afterburner_w64.exe src_pc/afterburner.c -D_USE_WIN_API_ +$CC -g3 -O0 -o afterburner_w64.exe src_pc/afterburner.c -D_USE_WIN_API_ -DNO_CLOSE