[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
This commit is contained in:
Binh-Minh Ribler 2002-02-17 20:01:17 -05:00
parent b8dbd390db
commit 35bdf428bd

View File

@ -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 */