diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2013-03-20 16:14:53 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2013-03-20 16:14:53 (GMT) |
commit | 6563fc39b17543f01fd8e888774c43a75628737f (patch) | |
tree | 5c1731e7c77c6df0ac4032e033dc248c53d0412f | |
parent | 76d6b9f4db4424f6ae52703cc43cbfe1130a439c (diff) | |
download | hdf5-6563fc39b17543f01fd8e888774c43a75628737f.zip hdf5-6563fc39b17543f01fd8e888774c43a75628737f.tar.gz hdf5-6563fc39b17543f01fd8e888774c43a75628737f.tar.bz2 |
[svn-r23402] Plugin Library needs own dll decorator
Tested: windows
-rw-r--r-- | test/plugin_lib/dynlib1.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/test/plugin_lib/dynlib1.h b/test/plugin_lib/dynlib1.h index 028cb00..fba626f 100644 --- a/test/plugin_lib/dynlib1.h +++ b/test/plugin_lib/dynlib1.h @@ -26,14 +26,23 @@ #include <stdio.h> #include <hdf5.h> +/* 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, |