From eaad5df3d1c7997077edd733224f11c39c6f2b45 Mon Sep 17 00:00:00 2001 From: Jonathan Gray Date: Mon, 22 Apr 2013 22:55:23 +1000 Subject: [PATCH] add an OpenBSD section to q_shared.h --- code/game/q_shared.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/code/game/q_shared.h b/code/game/q_shared.h index 20b4b5e..5cc2a71 100644 --- a/code/game/q_shared.h +++ b/code/game/q_shared.h @@ -170,6 +170,26 @@ void Sys_PumpEvents( void ); #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;