00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef H5API_ADPT_H
00022 #define H5API_ADPT_H
00023
00024 #if defined(_WIN32)
00025
00026 #if defined(_HDF5DLL_)
00027 #pragma warning(disable: 4273)
00028 #define H5_DLL __declspec(dllexport)
00029 #define H5_DLLVAR extern __declspec(dllexport)
00030 #elif defined(_HDF5USEDLL_)
00031 #define H5_DLL __declspec(dllimport)
00032 #define H5_DLLVAR __declspec(dllimport)
00033 #else
00034 #define H5_DLL
00035 #define H5_DLLVAR extern
00036 #endif
00037
00038 #if defined(_HDF5TESTDLL_)
00039 #pragma warning(disable: 4273)
00040 #define H5TEST_DLL __declspec(dllexport)
00041 #define H5TEST_DLLVAR extern __declspec(dllexport)
00042 #elif defined(_HDF5TESTUSEDLL_)
00043 #define H5TEST_DLL __declspec(dllimport)
00044 #define H5TEST_DLLVAR __declspec(dllimport)
00045 #else
00046 #define H5TEST_DLL
00047 #define H5TEST_DLLVAR extern
00048 #endif
00049
00050 #if defined(_HDF5_HLDLL_EXPORTS_)
00051 #pragma warning(disable: 4273)
00052 #define H5_HLDLL __declspec(dllexport)
00053 #elif defined(_HDF5USEHLDLL_)
00054 #define H5_HLDLL __declspec(dllimport)
00055 #else
00056 #define H5_HLDLL
00057 #endif
00058
00059 #if defined(HDF5_HL_CPPDLL_EXPORTS)
00060 #pragma warning(disable: 4273)
00061 #define H5_HLCPPDLL __declspec(dllexport)
00062 #elif defined(HDF5USE_HLCPPDLL)
00063 #define H5_HLCPPDLL __declspec(dllimport)
00064 #else
00065 #define H5_HLCPPDLL
00066 #endif
00067
00068 #if defined(HDF5_HL_F90CSTUBDLL_EXPORTS)
00069 #pragma warning(disable: 4273)
00070 #define HDF5_HL_F90CSTUBDLL __declspec(dllexport)
00071 #elif defined(HDF5USE_HLF90CSTUBDLL)
00072 #define HDF5_HL_F90CSTUBDLL __declspec(dllimport)
00073 #else
00074 #define HDF5_HL_F90CSTUBDLL
00075 #endif
00076
00077
00078 #if defined(HDF5FORT_CSTUB_DLL_EXPORTS)
00079 #pragma warning(disable: 4273)
00080 #define H5_FCDLL __declspec(dllexport)
00081 #define H5_FCDLLVAR extern __declspec(dllexport)
00082 #elif defined(HDF5FORT_CSTUB_USEDLL)
00083 #define H5_FCDLL __declspec(dllimport)
00084 #define H5_FCDLLVAR __declspec(dllimport)
00085 #else
00086 #define H5_FCDLL
00087 #define H5_FCDLLVAR extern
00088 #endif
00089
00090 #if defined(HDF5FORTTEST_CSTUB_DLL_EXPORTS)
00091 #pragma warning(disable: 4273)
00092 #define H5_FCTESTDLL __declspec(dllexport)
00093 #define H5_FCTESTDLLVAR extern __declspec(dllexport)
00094 #elif defined(HDF5FORTTEST_CSTUB_USEDLL)
00095 #define H5_FCTESTDLL __declspec(dllimport)
00096 #define H5_FCTESTDLLVAR __declspec(dllimport)
00097 #else
00098 #define H5_FCTESTDLL
00099 #define H5_FCTESTDLLVAR extern
00100 #endif
00101
00102
00103 #if defined(HDF5_CPPDLL_EXPORTS)
00104 #define H5_DLLCPP __declspec(dllexport)
00105 #elif defined(HDF5CPP_USEDLL)
00106 #define H5_DLLCPP __declspec(dllimport)
00107 #else
00108 #define H5_DLLCPP
00109 #endif
00110
00111 #else
00112 #define H5_DLL
00113 #define H5_HLDLL
00114 #define H5_HLCPPDLL
00115 #define HDF5_HL_F90CSTUBDLL
00116 #define H5_DLLVAR extern
00117 #define H5_DLLCPP
00118 #define H5TEST_DLL
00119 #define H5TEST_DLLVAR extern
00120 #define H5_FCDLL
00121 #define H5_FCDLLVAR extern
00122 #define H5_FCTESTDLL
00123 #define H5_FCTESTDLLVAR extern
00124 #endif
00125
00126 #endif
00127