Skip to content

Commit 807eaae

Browse files
authored
Pretend macOS to be Linux in KeyValues (#145)
Workaround for FL_Load_Glyph error
1 parent a1c4e27 commit 807eaae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tier1/KeyValues.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,10 +2208,10 @@ bool EvaluateConditional( const char *str )
22082208
return IsWindows() ^ bNot;
22092209

22102210
if ( Q_stristr( str, "$OSX" ) )
2211-
return IsOSX() ^ bNot;
2211+
return bNot;
22122212

22132213
if ( Q_stristr( str, "$LINUX" ) )
2214-
return IsLinux() ^ bNot;
2214+
return (IsLinux() || IsOSX()) ^ bNot;
22152215

22162216
if ( Q_stristr( str, "$POSIX" ) )
22172217
return IsPosix() ^ bNot;

0 commit comments

Comments
 (0)