mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
[svn-r1028] new include file that is needed on NT to export functions and gloabls in a dll
This commit is contained in:
parent
ba57f7a460
commit
6778cd8ce5
25
src/H5api_adpt.h
Normal file
25
src/H5api_adpt.h
Normal 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 */
|
Loading…
Reference in New Issue
Block a user