sourcemm/oslink.h
changeset 122 7c36121e2dfe
parent 79 3a1b2669763c
child 175 b497b7777f6b
     1.1 --- a/sourcemm/oslink.h	Wed Oct 05 21:51:02 2005 +0000
     1.2 +++ b/sourcemm/oslink.h	Thu Oct 06 00:59:01 2005 +0000
     1.3 @@ -27,6 +27,10 @@
     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  #elif defined __linux__
    1.12  	#define OS_LINUX
    1.13  	#include <dlfcn.h>
    1.14 @@ -35,6 +39,11 @@
    1.15  	#include <dirent.h>
    1.16  	#define		dlmount(x)		dlopen(x,RTLD_NOW)
    1.17  	typedef		void*			HINSTANCE;
    1.18 +	#define	PATH_SEP_STR	"/"
    1.19 +	#define PATH_SEP_CHAR	'/'
    1.20 +	#define ALT_SEP_CHAR	'\\'
    1.21 +	#define	stricmp				strcasecmp
    1.22 +	#define SERVER_DLL		"server_i486.so"
    1.23  #endif
    1.24  
    1.25  #if defined __linux__
    1.26 @@ -42,6 +51,8 @@
    1.27  	int GetLastError();
    1.28  #endif
    1.29  
    1.30 +bool GetFileOfAddress(void *pAddr, char *buffer, size_t maxlength);
    1.31 +
    1.32  #if defined __WIN32__ || defined _WIN32 || defined WIN32
    1.33  	#define SMM_API extern "C" __declspec(dllexport)
    1.34  #elif defined __GNUC__