diff options
Diffstat (limited to 'src/common/dll.h')
-rw-r--r-- | src/common/dll.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/dll.h b/src/common/dll.h index ec6f8cbed..50854da4d 100644 --- a/src/common/dll.h +++ b/src/common/dll.h @@ -6,7 +6,7 @@ #include <windows.h>
#define DLL_OPEN(x) LoadLibrary(x)
- #define DLL_SYM(x,y,z) (FARPROC)x=GetProcAddress(y,z)
+ #define DLL_SYM(x,y,z) (FARPROC)(x) = GetProcAddress(y,z)
#define DLL_CLOSE(x) FreeLibrary(x)
#define DLL HINSTANCE
@@ -14,9 +14,9 @@ #include <dlfcn.h>
#define DLL_OPEN(x) dlopen(x,RTLD_NOW)
- #define DLL_SYM(x,y,z) x=(void *)dlsym(y,z)
+ #define DLL_SYM(x,y,z) (x) = (void *)dlsym(y,z)
#define DLL_CLOSE(x) dlclose(x)
- #define DLL void*
+ #define DLL void *
#endif
|