From 3b4921daa2a1d0bdcbb47985ae1b5262e1539ea2 Mon Sep 17 00:00:00 2001 From: ole00 Date: Sat, 23 Mar 2024 16:16:38 +0000 Subject: [PATCH] build script for OSX: compile with preprocessor _OSX_ The preprocessor symbol helps to distinguish the serial port detection rule (OSX/Linux). --- compile_osx.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile_osx.sh b/compile_osx.sh index 8badbc5..d16253b 100755 --- a/compile_osx.sh +++ b/compile_osx.sh @@ -4,4 +4,4 @@ CC=~/opt/osxcross/bin/o64-clang GCOM=`git rev-parse --short HEAD` -$CC -g3 -O0 -DNO_CLOSE -DGCOM="\"g${GCOM}\"" -o afterburner_osx src_pc/afterburner.c +$CC -g3 -O0 -D_OSX_ -DNO_CLOSE -DGCOM="\"g${GCOM}\"" -o afterburner_osx src_pc/afterburner.c