Fixed building of loader.
Fixed building of loader.
1.1 --- a/loader/loader.h Tue Nov 24 07:33:52 2009 -0600
1.2 +++ b/loader/loader.h Tue Nov 24 07:57:17 2009 -0600
1.3 @@ -26,6 +26,16 @@
1.4 #ifndef _INCLUDE_METAMOD_SOURCE_LOADER_H_
1.5 #define _INCLUDE_METAMOD_SOURCE_LOADER_H_
1.6
1.7 +// System
1.8 +#define SH_SYS_WIN32 1
1.9 +#define SH_SYS_LINUX 2
1.10 +#define SH_SYS_APPLE 3
1.11 +
1.12 +// Platform
1.13 +#define SH_XP_POSIX 10
1.14 +#define SH_XP_WINAPI 20
1.15 +
1.16 +// Compiler
1.17 #define SH_COMP_GCC 1
1.18 #define SH_COMP_MSVC 2
1.19
1.20 @@ -34,6 +44,8 @@
1.21 #include <windows.h>
1.22 #include <direct.h>
1.23 #define PLATFORM_MAX_PATH MAX_PATH
1.24 +#define SH_SYS SH_SYS_WIN32
1.25 +#define SH_XP SH_XP_WINAPI
1.26 #define SH_COMP SH_COMP_MSVC
1.27 #define PATH_SEP_STR "\\"
1.28 #define PATH_SEP_CHAR '\\'
1.29 @@ -45,6 +57,8 @@
1.30 #include <unistd.h>
1.31 typedef void * HMODULE;
1.32 #define PLATFORM_MAX_PATH PATH_MAX
1.33 +#define SH_SYS SH_SYS_LINUX
1.34 +#define SH_XP SH_SYS_POSIX
1.35 #define SH_COMP SH_COMP_GCC
1.36 #define PATH_SEP_STR "/"
1.37 #define PATH_SEP_CHAR '/'