Look for correct filename extension when loading native DLLs.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user