diff options
-rw-r--r-- | src/H5api_adpt.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/H5api_adpt.h b/src/H5api_adpt.h index 642f26e..d7f2bdf 100644 --- a/src/H5api_adpt.h +++ b/src/H5api_adpt.h @@ -34,6 +34,18 @@ #define H5_DLLVAR extern #endif /* _HDF5DLL_ */ +#if defined(_HDF5TESTDLL_) +#pragma warning(disable: 4273) /* Disable the dll linkage warnings */ +#define H5TEST_DLL __declspec(dllexport) +#define H5TEST_DLLVAR __declspec(dllexport) +#elif defined(_HDF5TESTUSEDLL_) +#define H5TEST_DLL __declspec(dllimport) +#define H5TEST_DLLVAR __declspec(dllimport) +#else +#define H5TEST_DLL +#define H5TEST_DLLVAR extern +#endif /* _HDF5TESTDLL_ */ + // Added to export or to import C++ APIs - BMR (02-15-2002) #if defined(HDF5_CPPDLL_EXPORTS) // this name is generated at creation #define H5_DLLCPP __declspec(dllexport) |