add an OpenBSD section to q_shared.h

This commit is contained in:
Jonathan Gray 2013-04-22 22:55:23 +10:00
parent eabd6e015c
commit d9628b4015
1 changed files with 20 additions and 0 deletions

View File

@ -140,6 +140,26 @@ void Sys_PumpEvents( void );
#endif #endif
//======================= OPENBSD DEFINES =================================
// the mac compiler can't handle >32k of locals, so we
// just waste space and make big arrays static...
#ifdef __OpenBSD__
#define MAC_STATIC
#ifdef __i386__
#define CPUSTRING "openbsd-i386"
#elif defined(__amd64__) || defined(__x86_64__)
#define CPUSTRING "openbsd-amd64"
#else
#define CPUSTRING "openbsd-other"
#endif
#define PATH_SEP '/'
#endif
//============================================================= //=============================================================
typedef unsigned long ulong; typedef unsigned long ulong;