diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-02-18 01:01:17 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-02-18 01:01:17 (GMT) |
commit | 35bdf428bdffa4a2787b7bd38aee18a51bd91db6 (patch) | |
tree | 43d310b60a87edf227597c16372770eeabf5259b /src/H5api_adpt.h | |
parent | b8dbd390db9b47e73c6120ba61724b1e20ab333d (diff) | |
download | hdf5-35bdf428bdffa4a2787b7bd38aee18a51bd91db6.zip hdf5-35bdf428bdffa4a2787b7bd38aee18a51bd91db6.tar.gz hdf5-35bdf428bdffa4a2787b7bd38aee18a51bd91db6.tar.bz2 |
[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
Diffstat (limited to 'src/H5api_adpt.h')
-rw-r--r-- | src/H5api_adpt.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 */ |