mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
Fix macOS build (#146)
* Fix macOS build * Fix *BSD build * Add missing *BSD include
This commit is contained in:
@@ -205,7 +205,7 @@ class CVCRHelpers : public IVCRHelpers
|
||||
public:
|
||||
virtual void ErrorMessage( const char *pMsg )
|
||||
{
|
||||
#if defined( WIN32 ) || defined( LINUX ) || defined(BSD)
|
||||
#if defined( WIN32 ) || defined( LINUX ) || defined(PLATFORM_BSD)
|
||||
NOVCR( ::MessageBox( NULL, pMsg, "VCR Error", MB_OK ) );
|
||||
#endif
|
||||
}
|
||||
@@ -950,7 +950,7 @@ bool GrabSourceMutex()
|
||||
|
||||
#ifdef ANDROID
|
||||
return true;
|
||||
#elif defined (LINUX) || defined(BSD)
|
||||
#elif defined (LINUX) || defined(PLATFORM_BSD)
|
||||
/*
|
||||
* Linux
|
||||
*/
|
||||
@@ -1198,7 +1198,7 @@ DLL_EXPORT int LauncherMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR
|
||||
DLL_EXPORT int LauncherMain( int argc, char **argv )
|
||||
#endif
|
||||
{
|
||||
#if (defined(LINUX) || defined(BSD)) && !defined ANDROID
|
||||
#if (defined(LINUX) || defined(PLATFORM_BSD)) && !defined ANDROID
|
||||
// Temporary fix to stop us from crashing in printf/sscanf functions that don't expect
|
||||
// localization to mess with your "." and "," float seperators. Mac OSX also sets LANG
|
||||
// to en_US.UTF-8 before starting up (in info.plist I believe).
|
||||
@@ -1225,7 +1225,7 @@ DLL_EXPORT int LauncherMain( int argc, char **argv )
|
||||
Msg("SDL version: %d.%d.%d rev: %s\n", (int)ver.major, (int)ver.minor, (int)ver.patch, SDL_GetRevision());
|
||||
#endif
|
||||
|
||||
#if (defined LINUX || defined BSD) && defined USE_SDL && defined TOGLES && !defined ANDROID
|
||||
#if (defined LINUX || defined PLATFORM_BSD) && defined USE_SDL && defined TOGLES && !defined ANDROID
|
||||
SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1");
|
||||
#endif
|
||||
|
||||
@@ -1553,7 +1553,7 @@ DLL_EXPORT int LauncherMain( int argc, char **argv )
|
||||
RegCloseKey(hKey);
|
||||
}
|
||||
|
||||
#elif defined( OSX ) || defined( LINUX ) || defined(BSD)
|
||||
#elif defined( OSX ) || defined( LINUX ) || defined(PLATFORM_BSD)
|
||||
struct stat st;
|
||||
if ( stat( RELAUNCH_FILE, &st ) == 0 )
|
||||
{
|
||||
@@ -1570,7 +1570,7 @@ DLL_EXPORT int LauncherMain( int argc, char **argv )
|
||||
}
|
||||
szCmd[nChars] = 0;
|
||||
char szOpenLine[ MAX_PATH ];
|
||||
#if defined( LINUX ) || defined(BSD)
|
||||
#if defined( LINUX ) || defined(PLATFORM_BSD)
|
||||
Q_snprintf( szOpenLine, sizeof(szOpenLine), "xdg-open \"%s\"", szCmd );
|
||||
#else
|
||||
Q_snprintf( szOpenLine, sizeof(szOpenLine), "open \"%s\"", szCmd );
|
||||
|
||||
@@ -45,8 +45,6 @@ def build(bld):
|
||||
|
||||
if bld.env.DEST_OS == 'win32':
|
||||
libs += ['USER32', 'OLE32', 'SHELL32']
|
||||
elif bld.env.DEST_OS == 'darwin':
|
||||
libs += ['FOUNDATION', 'APPKIT', 'IOKIT']
|
||||
|
||||
install_path = bld.env.LIBDIR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user