From d9628b4015cc7135a2506782c00f116e0e349cad 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 fdba245..6c0783a 100644 --- a/code/game/q_shared.h +++ b/code/game/q_shared.h @@ -140,6 +140,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;