mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
Fix macOS build (#146)
* Fix macOS build * Fix *BSD build * Add missing *BSD include
This commit is contained in:
@@ -58,14 +58,14 @@ DEFINE_ENUM_BITWISE_OPERATORS( EPlatform_t );
|
||||
const EPlatform_t thisPlatform = PLATFORM_XBOX_360;
|
||||
#elif defined( _PS3 )
|
||||
const EPlatform_t thisPlatform = PLATFORM_PS3;
|
||||
#elif defined ( _LINUX ) || defined(BSD)
|
||||
#elif defined ( _LINUX ) || defined(PLATFORM_BSD)
|
||||
const EPlatform_t thisPlatform = PLATFORM_LINUX;
|
||||
#else
|
||||
#error "UNABLE TO DETERMINE PLATFORM"
|
||||
#endif
|
||||
|
||||
|
||||
#if defined( OSX ) || defined( LINUX ) || defined(BSD)
|
||||
#if defined( OSX ) || defined( LINUX ) || defined(PLATFORM_BSD)
|
||||
ILauncherMgr *g_pLauncherMgr = NULL;
|
||||
#endif
|
||||
|
||||
@@ -1382,7 +1382,7 @@ bool CVideoCommonServices::ProcessFullScreenInput( bool &bAbortEvent, bool &bPau
|
||||
bool bEscPressed = ( m_bScanEsc ) ? CGEventSourceKeyState( kCGEventSourceStateCombinedSessionState, kVK_Escape ) : false;
|
||||
bool bReturnPressed = ( m_bScanReturn ) ? CGEventSourceKeyState( kCGEventSourceStateCombinedSessionState, kVK_Return ) : false;
|
||||
bool bSpacePressed = ( m_bScanSpace ) ? CGEventSourceKeyState( kCGEventSourceStateCombinedSessionState, kVK_Space ) : false;
|
||||
#elif defined(LINUX) || defined(BSD)
|
||||
#elif defined(LINUX) || defined(PLATFORM_BSD)
|
||||
g_pLauncherMgr->PumpWindowsMessageLoop();
|
||||
|
||||
// Escape, return, or space stops or pauses the playback
|
||||
|
||||
Reference in New Issue
Block a user