From c6a9027b7cf0d35401cae346b67ca95c5f55b4a1 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sat, 3 Nov 2007 00:06:23 +0000 Subject: * Merge ioq3-r1204 --- src/qcommon/q_platform.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/qcommon/q_platform.h') diff --git a/src/qcommon/q_platform.h b/src/qcommon/q_platform.h index 361526dc..9d0d6dd3 100644 --- a/src/qcommon/q_platform.h +++ b/src/qcommon/q_platform.h @@ -123,6 +123,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifdef __linux__ +#include + #define OS_STRING "linux" #define ID_INLINE inline #define PATH_SEP '/' @@ -171,6 +173,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #ifdef __FreeBSD__ +#include #include #define OS_STRING "freebsd" @@ -193,11 +196,37 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif +//=============================================================== OpenBSD === + +#ifdef __OpenBSD__ + +#include +#include + +#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 #ifdef __NetBSD__ +#include #include #define OS_STRING "netbsd" -- cgit