diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-10-12 23:27:47 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2007-10-12 23:27:47 +0000 |
commit | 40f6961fff934d6a7422fe2333abb33436f7196b (patch) | |
tree | c08baa8440a1d0fdec56a2a1b69e4dd2d713825c /code | |
parent | 49100cc40622bc3133450ab5579df57d0cf5adfa (diff) | |
download | ioquake3-aero-40f6961fff934d6a7422fe2333abb33436f7196b.tar.gz ioquake3-aero-40f6961fff934d6a7422fe2333abb33436f7196b.zip |
* OpenBSD support (Toni Spets <toni.spets@gmail.com>)
git-svn-id: svn://svn.icculus.org/quake3/trunk@1196 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/qcommon/q_platform.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h index 4468904..91a4c68 100644 --- a/code/qcommon/q_platform.h +++ b/code/qcommon/q_platform.h @@ -192,6 +192,30 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif +//=============================================================== OpenBSD === + +#ifdef __OpenBSD__ + +#include <machine/endian.h> + +#define OS_STRING "openbsd" +#define ID_INLINE inline +#define PATH_SEP '/' + +#ifdef __i386__ +#define ARCH_STRING "i386" +#endif + +#if BYTE_ORDER == BIG_ENDIAN +#define Q3_BIG_ENDIAN +#else +#define Q3_LITTLE_ENDIAN +#endif + +#define DLL_EXT ".so" + +#endif + //================================================================ NetBSD === // This is very much like the FreeBSD one and can probably be merged |