From 1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Fri, 1 Mar 2013 23:53:11 +0000 Subject: 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 --- ws_symbol_export.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ws_symbol_export.h') 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 -- cgit v1.2.3