aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-05 01:11:41 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-12-05 01:11:41 +0000
commit5da02a4301441953f1b20d10e7cbbc3e8498d959 (patch)
tree3d0bb47003347a8a1945c8e4e1d8ab99de078d55 /code/qcommon
parentb090b43e84f60cbf86de4de0be9a60d27724d4de (diff)
downloadioquake3-aero-5da02a4301441953f1b20d10e7cbbc3e8498d959.tar.gz
ioquake3-aero-5da02a4301441953f1b20d10e7cbbc3e8498d959.zip
Look for correct filename extension when loading native DLLs.
git-svn-id: svn://svn.icculus.org/quake3/trunk@416 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/q_platform.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/code/qcommon/q_platform.h b/code/qcommon/q_platform.h
index b7ac01f..8859b7a 100644
--- a/code/qcommon/q_platform.h
+++ b/code/qcommon/q_platform.h
@@ -89,6 +89,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define Q3_LITTLE_ENDIAN
+#define DLL_EXT ".dll"
+
#endif
//============================================================== MAC OS X ===
@@ -112,6 +114,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define Q3_LITTLE_ENDIAN
#endif
+#define DLL_EXT ".dylib"
+
#endif
//================================================================= LINUX ===
@@ -158,6 +162,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define Q3_LITTLE_ENDIAN
#endif
+#define DLL_EXT ".so"
+
#endif
//=============================================================== FreeBSD ===
@@ -182,6 +188,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define Q3_LITTLE_ENDIAN
#endif
+#define DLL_EXT ".so"
+
#endif
//================================================================= SUNOS ===
@@ -207,6 +215,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define Q3_LITTLE_ENDIAN
#endif
+#define DLL_EXT ".so"
+
#endif
//================================================================== Q3VM ===
@@ -219,6 +229,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#define ARCH_STRING "bytecode"
+#define DLL_EXT ".qvm"
+
#endif
//===========================================================================
@@ -240,6 +252,10 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#error "PATH_SEP not defined"
#endif
+#ifndef DLL_EXT
+#error "DLL_EXT not defined"
+#endif
+
//endianness
short ShortSwap (short l);