aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon/q_platform.h
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-27 19:46:01 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-27 19:46:01 +0000
commitf517f31a6f8c1e3adcd41d020575c27f217ee8e0 (patch)
tree0de4db6ccdc73164ed4d1a9d66d7ccb42f4fa036 /code/qcommon/q_platform.h
parentb0a5b18fc58cf4b9b0ad2eb72f0678b344a2db25 (diff)
downloadioquake3-aero-f517f31a6f8c1e3adcd41d020575c27f217ee8e0.tar.gz
ioquake3-aero-f517f31a6f8c1e3adcd41d020575c27f217ee8e0.zip
* NetBSD support patch from optical (alex@rigbo.se)
git-svn-id: svn://svn.icculus.org/quake3/trunk@448 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon/q_platform.h')
-rw-r--r--code/qcommon/q_platform.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h
index 8859b7a..16817c8 100644
--- a/code/qcommon/q_platform.h
+++ b/code/qcommon/q_platform.h
@@ -192,6 +192,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