diff -r 158b860440c0 -r 7c36121e2dfe sourcemm/oslink.h --- a/sourcemm/oslink.h Wed Oct 05 21:51:02 2005 +0000 +++ b/sourcemm/oslink.h Thu Oct 06 00:59:01 2005 +0000 @@ -27,6 +27,10 @@ #define dlsym(x, s) GetProcAddress(x, s) #define dlclose(x) FreeLibrary(x) const char* dlerror(); + #define PATH_SEP_STR "\\" + #define PATH_SEP_CHAR '\\' + #define ALT_SEP_CHAR '/' + #define SERVER_DLL "server.dll" #elif defined __linux__ #define OS_LINUX #include @@ -35,6 +39,11 @@ #include #define dlmount(x) dlopen(x,RTLD_NOW) typedef void* HINSTANCE; + #define PATH_SEP_STR "/" + #define PATH_SEP_CHAR '/' + #define ALT_SEP_CHAR '\\' + #define stricmp strcasecmp + #define SERVER_DLL "server_i486.so" #endif #if defined __linux__ @@ -42,6 +51,8 @@ int GetLastError(); #endif +bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength); + #if defined __WIN32__ || defined _WIN32 || defined WIN32 #define SMM_API extern "C" __declspec(dllexport) #elif defined __GNUC__