sourcemm/sample_mm/oslink.h
changeset 219 8e1b76a659b0
parent 218 d40365b50d43
child 221 5674f782b9d3
     1.1 --- a/sourcemm/sample_mm/oslink.h	Wed Jul 19 06:57:03 2006 +0000
     1.2 +++ b/sourcemm/sample_mm/oslink.h	Wed Jul 19 07:06:28 2006 +0000
     1.3 @@ -31,10 +31,6 @@
     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 @@ -43,11 +39,6 @@
    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 @@ -55,8 +46,6 @@
    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__
    1.35 @@ -67,12 +56,11 @@
    1.36  	typedef __int64				int64_t;
    1.37  	typedef unsigned __int64	uint64_t;
    1.38  #elif defined __GNUC__
    1.39 -#include <stdint.h>
    1.40 -#if !__GLIBC_HAVE_LONG_LONG
    1.41 +# if !__GLIBC_HAVE_LONG_LONG
    1.42  	typedef long long			int64_t;
    1.43 +# endif
    1.44  	typedef unsigned long long	uint64_t;
    1.45  #endif
    1.46 -#endif
    1.47  
    1.48  #ifndef __linux__
    1.49  	#define snprintf	_snprintf