From 90fd7a2c221c9e13a43d2c01e3af53c04e393945 Mon Sep 17 00:00:00 2001 From: amber Date: Thu, 7 Apr 2005 18:42:53 +0000 Subject: G++ is now the default on trunk [MouseJstr] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@1443 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/.svnignore | 2 ++ src/common/dll.h | 50 +++++++++++++++++++++++++------------------------- 2 files changed, 27 insertions(+), 25 deletions(-) create mode 100644 src/common/.svnignore (limited to 'src/common') diff --git a/src/common/.svnignore b/src/common/.svnignore new file mode 100644 index 000000000..fbbf39b06 --- /dev/null +++ b/src/common/.svnignore @@ -0,0 +1,2 @@ +GNUmakefile +obj diff --git a/src/common/dll.h b/src/common/dll.h index 50854da4d..1ad49143c 100644 --- a/src/common/dll.h +++ b/src/common/dll.h @@ -1,25 +1,25 @@ - -#ifndef _DLL_H_ -#define _DLL_H_ - -#ifdef _WIN32 - - #include - #define DLL_OPEN(x) LoadLibrary(x) - #define DLL_SYM(x,y,z) (FARPROC)(x) = GetProcAddress(y,z) - #define DLL_CLOSE(x) FreeLibrary(x) - #define DLL HINSTANCE - -#else - - #include - #define DLL_OPEN(x) dlopen(x,RTLD_NOW) - #define DLL_SYM(x,y,z) (x) = (void *)dlsym(y,z) - #define DLL_CLOSE(x) dlclose(x) - #define DLL void * - -#endif - -#endif // _DLL_H_ - - + +#ifndef _DLL_H_ +#define _DLL_H_ + +#ifdef _WIN32 + + #include + #define DLL_OPEN(x) LoadLibrary(x) + #define DLL_SYM(x,y,z) (FARPROC)(x) = GetProcAddress(y,z) + #define DLL_CLOSE(x) FreeLibrary(x) + #define DLL HINSTANCE + +#else + + #include + #define DLL_OPEN(x) dlopen(x,RTLD_NOW) + #define DLL_SYM(x,y,z) (x) = (void *)dlsym(y,z) + #define DLL_CLOSE(x) dlclose(x) + #define DLL void * + +#endif + +#endif // _DLL_H_ + + -- cgit v1.2.3-70-g09d2