diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-02-12 03:51:36 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2002-02-12 03:51:36 (GMT) |
commit | 5c34950283247009504c8bffd75bd3217d065a7b (patch) | |
tree | cfb67c934bb4ac4aba06a5181129ec544db71351 /src | |
parent | f2f90dea3880e623b5a603e4e32c88a5ef37ca7f (diff) | |
download | hdf5-5c34950283247009504c8bffd75bd3217d065a7b.zip hdf5-5c34950283247009504c8bffd75bd3217d065a7b.tar.gz hdf5-5c34950283247009504c8bffd75bd3217d065a7b.tar.bz2 |
[svn-r4939]
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:
Windows 2000
Diffstat (limited to 'src')
-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..52de7ea 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 (01-29-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 */ |