build script for OSX: compile with preprocessor _OSX_

The preprocessor symbol helps to distinguish the serial port
detection rule (OSX/Linux).
This commit is contained in:
ole00 2024-03-23 16:16:38 +00:00
parent 4238800190
commit 3b4921daa2
1 changed files with 1 additions and 1 deletions

View File

@ -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