[svn-r1028] new include file that is needed on NT to export functions and gloabls in a dll

This commit is contained in:
Patrick Lu 1999-01-21 11:11:12 -05:00
parent ba57f7a460
commit 6778cd8ce5

25
src/H5api_adpt.h Normal file
View File

@ -0,0 +1,25 @@
/*
H5api_adpt.h
Used for the HDF5 dll project
Created by Patrick Lu on 1/12/99
*/
#ifndef H5API_ADPT_H
#define H5API_ADPT_H
#if defined(WIN32)
#if defined(_HDF5DLL_)
#pragma warning(disable: 4273) /* Disable the dll linkage warnings */
#define HDF5API __declspec(dllexport)
#define HDF5GLOBAL __declspec(dllexport)
#else
#define HDF5API
#define HDF5GLOBAL extern
#endif /* _HDF5DLL_ */
#else /*WIN32*/
#define HDF5API
#define HDF5GLOBAL extern
#endif
#endif /* H5API_ADPT_H */