From 35bdf428bdffa4a2787b7bd38aee18a51bd91db6 Mon Sep 17 00:00:00 2001 From: Binh-Minh Ribler Date: Sun, 17 Feb 2002 20:01:17 -0500 Subject: [svn-r4979] Purpose: Adding support for dll Description: Added the definition of __DLLCPP__ depending on: HDF5_CPPDLL_EXPORTS: C++ API is to be exported - this name is generated by MSVC++ when the project was created. HDF5CPP_USEDLL: C++ API dll is to be used (imported.) Any applications, that use the C++ API dll, must define this name in the project setting. On non-windows platforms, __DLLCPP__ is nil. Platforms tested: Linux 6.2 (eirene) Windows 2000 --- src/H5api_adpt.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/H5api_adpt.h b/src/H5api_adpt.h index 5b09c76..1c72c2e 100644 --- a/src/H5api_adpt.h +++ b/src/H5api_adpt.h @@ -20,9 +20,19 @@ #define __DLLVAR__ extern #endif /* _HDF5DLL_ */ +// Added to export or to import C++ APIs - BMR (02-15-2002) +#if defined(HDF5_CPPDLL_EXPORTS) // this name is generated at creation +#define __DLLCPP__ __declspec(dllexport) +#elif defined(HDF5CPP_USEDLL) +#define __DLLCPP__ __declspec(dllimport) +#else +#define __DLLCPP__ +#endif /* HDF5_CPPDLL_EXPORTS */ + #else /*WIN32*/ #define __DLL__ #define __DLLVAR__ extern +#define __DLLCPP__ #endif #endif /* H5API_ADPT_H */ -- cgit v0.12