mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-05 22:09:59 +03:00
BSD: Add support (#140)
* BSD: Add support * BSD: other fixes There is still a bug when vgui haven't got text, maybe because of resources. Also there is bug where when trying to start new game caption names shows wrong. * BSD: Debugging * BSD: modify preprocessor and fix windows * BSD: Remove debugging and fix labels in gameui * BSD: Remove disabling some DX9 commands * BSD: Remove -g flag
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#include <Psapi.h>
|
||||
#endif
|
||||
|
||||
#if defined( OSX )
|
||||
#if defined( OSX ) || defined(BSD)
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
||||
@@ -278,7 +278,7 @@ static void posix_signal_handler( int i )
|
||||
#define DO_TRY if ( sigsetjmp( g_mark, 1 ) == 0 )
|
||||
#define DO_CATCH else
|
||||
|
||||
#if defined( OSX )
|
||||
#if defined( OSX ) || defined(BSD)
|
||||
#define __sighandler_t sig_t
|
||||
#endif
|
||||
|
||||
@@ -537,7 +537,7 @@ public:
|
||||
FreeLibrary( hInst );
|
||||
}
|
||||
|
||||
#elif defined( OSX )
|
||||
#elif defined( OSX ) || defined(BSD)
|
||||
|
||||
static const struct
|
||||
{
|
||||
@@ -548,8 +548,13 @@ public:
|
||||
#define _XTAG( _x ) { _x, #_x }
|
||||
_XTAG( HW_PHYSMEM ),
|
||||
_XTAG( HW_USERMEM ),
|
||||
#ifdef BSD
|
||||
_XTAG( HW_PHYSMEM ),
|
||||
_XTAG( HW_NCPU ),
|
||||
#else
|
||||
_XTAG( HW_MEMSIZE ),
|
||||
_XTAG( HW_AVAILCPU ),
|
||||
#endif
|
||||
#undef _XTAG
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user