From 6563fc39b17543f01fd8e888774c43a75628737f Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Wed, 20 Mar 2013 11:14:53 -0500 Subject: [PATCH] [svn-r23402] Plugin Library needs own dll decorator Tested: windows --- test/plugin_lib/dynlib1.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/test/plugin_lib/dynlib1.h b/test/plugin_lib/dynlib1.h index 028cb00d56..fba626fbf5 100644 --- a/test/plugin_lib/dynlib1.h +++ b/test/plugin_lib/dynlib1.h @@ -26,14 +26,23 @@ #include #include +/* plugins always export */ + #if defined (_MSC_VER) /* MSVC Compiler Case */ + #define H5PLUGIN_DLL __declspec(dllexport) + #define H5PLUGIN_DLLVAR extern __declspec(dllexport) + #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */ + #define H5PLUGIN_DLL __attribute__ ((visibility("default"))) + #define H5PLUGIN_DLLVAR extern __attribute__ ((visibility("default"))) + #endif + #define FILTER_DYNLIB1_VERS 1 #ifdef __cplusplus extern "C" { #endif - H5_DLL const H5PL_type_t H5PL_get_plugin_type(void); - H5_DLL const H5Z_class2_t* H5PL_get_plugin_info(void); + H5PLUGIN_DLL const H5PL_type_t H5PL_get_plugin_type(void); + H5PLUGIN_DLL const H5Z_class2_t* H5PL_get_plugin_info(void); /* Local prototypes for filter functions */ static size_t H5Z_filter_dynlib1(unsigned int flags, size_t cd_nelmts,