Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the truth value for the MacOSX convenience flag #146

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions source/qb64.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down