1.1 --- a/sourcemm/oslink.h Sat Mar 03 06:57:30 2007 +0000
1.2 +++ b/sourcemm/oslink.h Wed Mar 21 17:45:28 2007 +0000
1.3 @@ -31,24 +31,28 @@
1.4 #define dlsym(x, s) GetProcAddress(x, s)
1.5 #define dlclose(x) FreeLibrary(x)
1.6 const char* dlerror();
1.7 - #define PATH_SEP_STR "\\"
1.8 - #define PATH_SEP_CHAR '\\'
1.9 - #define ALT_SEP_CHAR '/'
1.10 - #define SERVER_DLL "server.dll"
1.11 + #define abspath(x, s) _fullpath(x, s, sizeof(x))
1.12 + #define PATH_SEP_STR "\\"
1.13 + #define PATH_SEP_CHAR '\\'
1.14 + #define ALT_SEP_CHAR '/'
1.15 + #define PATH_SIZE MAX_PATH
1.16 + #define SERVER_DLL "server.dll"
1.17 #elif defined __linux__
1.18 #define OS_LINUX
1.19 #include <dlfcn.h>
1.20 #include <unistd.h>
1.21 #include <sys/types.h>
1.22 #include <dirent.h>
1.23 + typedef void* HINSTANCE;
1.24 #define dlmount(x) dlopen(x,RTLD_NOW)
1.25 - typedef void* HINSTANCE;
1.26 - #define PATH_SEP_STR "/"
1.27 - #define PATH_SEP_CHAR '/'
1.28 - #define ALT_SEP_CHAR '\\'
1.29 + #define abspath(x, s) realpath(s, x)
1.30 + #define PATH_SEP_STR "/"
1.31 + #define PATH_SEP_CHAR '/'
1.32 + #define ALT_SEP_CHAR '\\'
1.33 + #define PATH_SIZE PATH_MAX
1.34 #define stricmp strcasecmp
1.35 #define strnicmp strncasecmp
1.36 - #define SERVER_DLL "server_i486.so"
1.37 + #define SERVER_DLL "server_i486.so"
1.38 #endif
1.39
1.40 #if defined __linux__