From 6778cd8ce550b1c366afaed2e7351367e1617d3e Mon Sep 17 00:00:00 2001 From: Patrick Lu Date: Thu, 21 Jan 1999 11:11:12 -0500 Subject: [svn-r1028] new include file that is needed on NT to export functions and gloabls in a dll --- src/H5api_adpt.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/H5api_adpt.h diff --git a/src/H5api_adpt.h b/src/H5api_adpt.h new file mode 100644 index 0000000..0dc077a --- /dev/null +++ b/src/H5api_adpt.h @@ -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 */ \ No newline at end of file -- cgit v0.12