From 7f5d5be7618e631a33d3c0fb417baa73405b6880 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 10 Mar 2021 22:28:13 +1100 Subject: [PATCH] Fixes the truth value for the MacOSX convenience flag --- source/qb64.bas | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/qb64.bas b/source/qb64.bas index 931e087e8..3e5dc7f24 100644 --- a/source/qb64.bas +++ b/source/qb64.bas @@ -185,11 +185,14 @@ DIM SHARED Error_Happened AS LONG DIM SHARED Error_Message AS STRING DIM SHARED os AS STRING + os$ = "WIN" +'TODO: set to "MAC" if, um, is a Mac or get rid of os$ and add flags for +' Windows and Linux and group in a type container. -- djk IF INSTR(_OS$, "[LINUX]") THEN os$ = "LNX" -DIM SHARED MacOSX AS LONG -IF INSTR(_OS$, "[MACOSX]") THEN MacOSX = 1 +DIM SHARED MacOSX AS _BYTE +IF INSTR(_OS$, "[MACOSX]") THEN MacOSX = -1 DIM SHARED inline_DATA IF MacOSX THEN inline_DATA = 1