diff options
author | Tim Angus <tim@ngus.net> | 2005-12-29 00:58:58 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2005-12-29 00:58:58 +0000 |
commit | b128225d7083486ed1566de5a76e602baeecc8a5 (patch) | |
tree | d447b04f9b2ccd0ac21e74b256e33c322abc9725 /src/qcommon/q_platform.h | |
parent | 4f03afa80f3c26996b750c69781c00b0e7c2058f (diff) |
* Merged ioq3-r451 into trunk
Diffstat (limited to 'src/qcommon/q_platform.h')
-rw-r--r-- | src/qcommon/q_platform.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/qcommon/q_platform.h b/src/qcommon/q_platform.h index cb8e66ff..92e5be1a 100644 --- a/src/qcommon/q_platform.h +++ b/src/qcommon/q_platform.h @@ -193,6 +193,32 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #endif +//================================================================ NetBSD === + +// This is very much like the FreeBSD one and can probably be merged +#ifdef __NetBSD__ + +#include <machine/endian.h> + +#define OS_STRING "netbsd" +#define ID_INLINE inline +#define PATH_SEP '/' + +#ifdef __i386__ +#define ARCH_STRING "i386" +// Netbsd has alot of platforms +#endif + +#if BYTE_ORDER == BIG_ENDIAN +#define Q3_BIG_ENDIAN +#else +#define Q3_LITTLE_ENDIAN +#endif + +#define DLL_EXT ".so" + +#endif + //================================================================= SUNOS === #ifdef __sun |