diff options
author | Tim Angus <tim@ngus.net> | 2007-11-03 00:06:23 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2007-11-03 00:06:23 +0000 |
commit | c6a9027b7cf0d35401cae346b67ca95c5f55b4a1 (patch) | |
tree | 3e41bfc88a8fb845cff921ccd62f5b3489fee703 /src/qcommon/q_platform.h | |
parent | 5c3429cb21861e253d9a80fa07f6487013c99109 (diff) |
* Merge ioq3-r1204
Diffstat (limited to 'src/qcommon/q_platform.h')
-rw-r--r-- | src/qcommon/q_platform.h | 29 |
1 files changed, 29 insertions, 0 deletions
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 <endian.h> + #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 <sys/types.h> #include <machine/endian.h> #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 <sys/types.h> +#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 #ifdef __NetBSD__ +#include <sys/types.h> #include <machine/endian.h> #define OS_STRING "netbsd" |