diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-25 22:04:51 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-09-25 22:04:51 +0000 |
commit | 4a17650af74aa4b90c0c258d3aedff49ab2ac60b (patch) | |
tree | 63833dadee0795214a880808bae36c7081aaf430 /code/splines | |
parent | 2202e36a35f4534b340b45b876482b1f6bf2a955 (diff) | |
download | ioquake3-aero-4a17650af74aa4b90c0c258d3aedff49ab2ac60b.tar.gz ioquake3-aero-4a17650af74aa4b90c0c258d3aedff49ab2ac60b.zip |
* FreeBSD fixes/updates from Andreas Kohn
git-svn-id: svn://svn.icculus.org/quake3/trunk@107 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/splines')
-rw-r--r-- | code/splines/q_shared.h | 28 | ||||
-rw-r--r-- | code/splines/q_shared.hpp | 31 |
2 files changed, 59 insertions, 0 deletions
diff --git a/code/splines/q_shared.h b/code/splines/q_shared.h index c554823..fd78931 100644 --- a/code/splines/q_shared.h +++ b/code/splines/q_shared.h @@ -228,6 +228,34 @@ void Sys_PumpEvents( void ); #endif +//======================= FreeBSD DEFINES ===================== +/* Adapted from game/q_shared.h */ +#ifdef __FreeBSD__ // rb010123 + +#define stricmp strcasecmp + +#define MAC_STATIC +#define ID_INLINE inline + +#ifdef __i386__ +#define CPUSTRING "freebsd-i386" +#elif defined __axp__ +#define CPUSTRING "freebsd-alpha" +#else +#define CPUSTRING "freebsd-other" +#endif + +#define PATH_SEP '/' + +#ifdef Q3_STATIC +#define GAME_HARD_LINKED +#define CGAME_HARD_LINKED +#define UI_HARD_LINKED +#define BOTLIB_HARD_LINKED +#endif + +#endif + //============================================================= diff --git a/code/splines/q_shared.hpp b/code/splines/q_shared.hpp index faaaa22..31ae71a 100644 --- a/code/splines/q_shared.hpp +++ b/code/splines/q_shared.hpp @@ -216,6 +216,37 @@ void Sys_PumpEvents( void ); #endif +//======================= FreeBSD DEFINES ================================= + +// the mac compiler can't handle >32k of locals, so we +// just waste space and make big arrays static... +#ifdef __FreeBSD__ + +// bk001205 - from Makefile +#define stricmp strcasecmp + +#define MAC_STATIC // bk: FIXME + +#ifdef __i386__ +#define CPUSTRING "freebsd-i386" +#elif defined __axp__ +#define CPUSTRING "freebsd-alpha" +#else +#define CPUSTRING "freebsd-other" +#endif + +#define PATH_SEP '/' + +// bk001205 - try +#ifdef Q3_STATIC +#define GAME_HARD_LINKED +#define CGAME_HARD_LINKED +#define UI_HARD_LINKED +#define BOTLIB_HARD_LINKED +#endif + +#endif + //============================================================= |