diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-03-01 23:53:11 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-03-01 23:53:11 +0000 |
commit | 1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 (patch) | |
tree | d6dde0ea7b6e6e15cc2c51a5f478fb85965b9720 /ws_symbol_export.h | |
parent | 0b8d70bfb715bc3d89b6dfae86fc79d7c4387f02 (diff) |
Export libwireshark symbols using WS_DLL_PUBLIC define
Also remove old WS_VAR_IMPORT define and related Makefile magic
everywhere in the project.
svn path=/trunk/; revision=47992
Diffstat (limited to 'ws_symbol_export.h')
-rw-r--r-- | ws_symbol_export.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ws_symbol_export.h b/ws_symbol_export.h index fc257ce8e3..ac9b973053 100644 --- a/ws_symbol_export.h +++ b/ws_symbol_export.h @@ -40,14 +40,17 @@ #define WS_DLL_PUBLIC #endif /* __GNUC__ */ #endif /* WS_BUILD_DLL */ + #define WS_DLL_PUBLIC_NOEXTERN WS_DLL_PUBLIC #define WS_DLL_LOCAL #else #if __GNUC__ >= 4 -#define WS_DLL_PUBLIC __attribute__ ((visibility ("default"))) +#define WS_DLL_PUBLIC __attribute__ ((visibility ("default"))) extern +#define WS_DLL_PUBLIC_NOEXTERN __attribute__ ((visibility ("default"))) #define WS_DLL_LOCAL __attribute__ ((visibility ("hidden"))) #else /* ! __GNUC__ >= 4 */ #define WS_DLL_PUBLIC - #define WS_DLL_LOCAL + #define WS_DLL_PUBLIC_NOEXTERN + #define WS_DLL_LOCAL extern #endif /* __GNUC__ >= 4 */ #endif |