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 /plugins/stats_tree | |
parent | 0b8d70bfb715bc3d89b6dfae86fc79d7c4387f02 (diff) | |
download | wireshark-1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322.tar.gz wireshark-1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322.tar.bz2 wireshark-1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322.zip |
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 'plugins/stats_tree')
-rw-r--r-- | plugins/stats_tree/Makefile.nmake | 2 | ||||
-rw-r--r-- | plugins/stats_tree/stats_tree_plugin.c | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/plugins/stats_tree/Makefile.nmake b/plugins/stats_tree/Makefile.nmake index 22141611e1..e2a048c2fb 100644 --- a/plugins/stats_tree/Makefile.nmake +++ b/plugins/stats_tree/Makefile.nmake @@ -22,7 +22,7 @@ LDFLAGS = $(PLUGIN_LDFLAGS) !IFDEF ENABLE_LIBWIRESHARK LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib -CFLAGS=/D_NEED_VAR_IMPORT_ $(CFLAGS) +CFLAGS=$(CFLAGS) OBJECTS = $(C_FILES:.c=.obj) $(CPP_FILES:.cpp=.obj) diff --git a/plugins/stats_tree/stats_tree_plugin.c b/plugins/stats_tree/stats_tree_plugin.c index 3f0614b89f..ff17819356 100644 --- a/plugins/stats_tree/stats_tree_plugin.c +++ b/plugins/stats_tree/stats_tree_plugin.c @@ -28,13 +28,17 @@ #include <gmodule.h> +/* plugins are DLLs */ +#define WS_BUILD_DLL +#include "ws_symbol_export.h" + #include <epan/stats_tree.h> #include "pinfo_stats_tree.h" -G_MODULE_EXPORT const gchar version[] = "0.0.1"; +WS_DLL_PUBLIC_NOEXTERN const gchar version[] = "0.0.1"; -G_MODULE_EXPORT void plugin_register_tap_listener(void) +WS_DLL_PUBLIC_NOEXTERN void plugin_register_tap_listener(void) { register_pinfo_stat_trees(); } |