Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-04-18 09:16:01

0001 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
0002  * Copyright by The HDF Group.                                               *
0003  * All rights reserved.                                                      *
0004  *                                                                           *
0005  * This file is part of HDF5.  The full HDF5 copyright notice, including     *
0006  * terms governing use, modification, and redistribution, is contained in    *
0007  * the COPYING file, which can be found at the root of the source code       *
0008  * distribution tree, or in https://www.hdfgroup.org/licenses.               *
0009  * If you do not have access to either file, you may request a copy from     *
0010  * help@hdfgroup.org.                                                        *
0011  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
0012 
0013 /*
0014  * H5api_adpt.h
0015  * Used for the HDF5 dll project
0016  */
0017 #ifndef H5API_ADPT_H
0018 #define H5API_ADPT_H
0019 
0020 /* This will only be defined if HDF5 was built with CMake */
0021 #ifdef H5_BUILT_AS_DYNAMIC_LIB
0022 
0023 #if defined(hdf5_shared_EXPORTS)
0024 #if defined(_MSC_VER) /* MSVC Compiler Case */
0025 #define H5_DLL    __declspec(dllexport)
0026 #define H5_DLLVAR extern __declspec(dllexport)
0027 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0028 #define H5_DLL    __attribute__((visibility("default")))
0029 #define H5_DLLVAR extern __attribute__((visibility("default")))
0030 #endif
0031 #else
0032 #if defined(_MSC_VER) /* MSVC Compiler Case */
0033 #define H5_DLL    __declspec(dllimport)
0034 #define H5_DLLVAR __declspec(dllimport)
0035 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0036 #define H5_DLL    __attribute__((visibility("default")))
0037 #define H5_DLLVAR extern __attribute__((visibility("default")))
0038 #endif
0039 #endif
0040 
0041 #ifndef H5_DLL
0042 #define H5_DLL
0043 #define H5_DLLVAR extern
0044 #endif /* _HDF5DLL_ */
0045 
0046 #if defined(hdf5_test_shared_EXPORTS)
0047 #if defined(_MSC_VER) /* MSVC Compiler Case */
0048 #define H5TEST_DLL    __declspec(dllexport)
0049 #define H5TEST_DLLVAR extern __declspec(dllexport)
0050 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0051 #define H5TEST_DLL    __attribute__((visibility("default")))
0052 #define H5TEST_DLLVAR extern __attribute__((visibility("default")))
0053 #endif
0054 #else
0055 #if defined(_MSC_VER) /* MSVC Compiler Case */
0056 #define H5TEST_DLL    __declspec(dllimport)
0057 #define H5TEST_DLLVAR __declspec(dllimport)
0058 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0059 #define H5TEST_DLL    __attribute__((visibility("default")))
0060 #define H5TEST_DLLVAR extern __attribute__((visibility("default")))
0061 #endif
0062 #endif
0063 
0064 #ifndef H5TEST_DLL
0065 #define H5TEST_DLL
0066 #define H5TEST_DLLVAR extern
0067 #endif /* H5TEST_DLL */
0068 
0069 #if defined(hdf5_tools_shared_EXPORTS)
0070 #if defined(_MSC_VER) /* MSVC Compiler Case */
0071 #define H5TOOLS_DLL    __declspec(dllexport)
0072 #define H5TOOLS_DLLVAR extern __declspec(dllexport)
0073 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0074 #define H5TOOLS_DLL    __attribute__((visibility("default")))
0075 #define H5TOOLS_DLLVAR extern __attribute__((visibility("default")))
0076 #endif
0077 #else
0078 #if defined(_MSC_VER) /* MSVC Compiler Case */
0079 #define H5TOOLS_DLL    __declspec(dllimport)
0080 #define H5TOOLS_DLLVAR __declspec(dllimport)
0081 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0082 #define H5TOOLS_DLL    __attribute__((visibility("default")))
0083 #define H5TOOLS_DLLVAR extern __attribute__((visibility("default")))
0084 #endif
0085 #endif
0086 
0087 #ifndef H5TOOLS_DLL
0088 #define H5TOOLS_DLL
0089 #define H5TOOLS_DLLVAR extern
0090 #endif /* H5TOOLS_DLL */
0091 
0092 #if defined(hdf5_cpp_shared_EXPORTS)
0093 #if defined(_MSC_VER) /* MSVC Compiler Case */
0094 #define H5_DLLCPP    __declspec(dllexport)
0095 #define H5_DLLCPPVAR extern __declspec(dllexport)
0096 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0097 #define H5_DLLCPP    __attribute__((visibility("default")))
0098 #define H5_DLLCPPVAR extern __attribute__((visibility("default")))
0099 #endif
0100 #else
0101 #if defined(_MSC_VER) /* MSVC Compiler Case */
0102 #define H5_DLLCPP    __declspec(dllimport)
0103 #define H5_DLLCPPVAR __declspec(dllimport)
0104 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0105 #define H5_DLLCPP    __attribute__((visibility("default")))
0106 #define H5_DLLCPPVAR extern __attribute__((visibility("default")))
0107 #endif
0108 #endif
0109 
0110 #ifndef H5_DLLCPP
0111 #define H5_DLLCPP
0112 #define H5_DLLCPPVAR extern
0113 #endif /* H5_DLLCPP */
0114 
0115 #if defined(hdf5_hl_shared_EXPORTS)
0116 #if defined(_MSC_VER) /* MSVC Compiler Case */
0117 #define H5_HLDLL    __declspec(dllexport)
0118 #define H5_HLDLLVAR extern __declspec(dllexport)
0119 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0120 #define H5_HLDLL    __attribute__((visibility("default")))
0121 #define H5_HLDLLVAR extern __attribute__((visibility("default")))
0122 #endif
0123 #else
0124 #if defined(_MSC_VER) /* MSVC Compiler Case */
0125 #define H5_HLDLL    __declspec(dllimport)
0126 #define H5_HLDLLVAR __declspec(dllimport)
0127 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0128 #define H5_HLDLL    __attribute__((visibility("default")))
0129 #define H5_HLDLLVAR extern __attribute__((visibility("default")))
0130 #endif
0131 #endif
0132 
0133 #ifndef H5_HLDLL
0134 #define H5_HLDLL
0135 #define H5_HLDLLVAR extern
0136 #endif /* H5_HLDLL */
0137 
0138 #if defined(hdf5_hl_cpp_shared_EXPORTS)
0139 #if defined(_MSC_VER) /* MSVC Compiler Case */
0140 #define H5_HLCPPDLL    __declspec(dllexport)
0141 #define H5_HLCPPDLLVAR extern __declspec(dllexport)
0142 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0143 #define H5_HLCPPDLL    __attribute__((visibility("default")))
0144 #define H5_HLCPPDLLVAR extern __attribute__((visibility("default")))
0145 #endif
0146 #else
0147 #if defined(_MSC_VER) /* MSVC Compiler Case */
0148 #define H5_HLCPPDLL    __declspec(dllimport)
0149 #define H5_HLCPPDLLVAR __declspec(dllimport)
0150 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0151 #define H5_HLCPPDLL    __attribute__((visibility("default")))
0152 #define H5_HLCPPDLLVAR extern __attribute__((visibility("default")))
0153 #endif
0154 #endif
0155 
0156 #ifndef H5_HLCPPDLL
0157 #define H5_HLCPPDLL
0158 #define H5_HLCPPDLLVAR extern
0159 #endif /* H5_HLCPPDLL */
0160 
0161 #if defined(hdf5_f90cstub_shared_EXPORTS)
0162 #if defined(_MSC_VER) /* MSVC Compiler Case */
0163 #define H5_FCDLL    __declspec(dllexport)
0164 #define H5_FCDLLVAR extern __declspec(dllexport)
0165 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0166 #define H5_FCDLL    __attribute__((visibility("default")))
0167 #define H5_FCDLLVAR extern __attribute__((visibility("default")))
0168 #endif
0169 #else
0170 #if defined(_MSC_VER) /* MSVC Compiler Case */
0171 #define H5_FCDLL    __declspec(dllimport)
0172 #define H5_FCDLLVAR __declspec(dllimport)
0173 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0174 #define H5_FCDLL    __attribute__((visibility("default")))
0175 #define H5_FCDLLVAR extern __attribute__((visibility("default")))
0176 #endif
0177 #endif
0178 
0179 #ifndef H5_FCDLL
0180 #define H5_FCDLL
0181 #define H5_FCDLLVAR extern
0182 #endif /* H5_FCDLL */
0183 
0184 #if defined(hdf5_test_f90cstub_shared_EXPORTS)
0185 #if defined(_MSC_VER) /* MSVC Compiler Case */
0186 #define H5_FCTESTDLL    __declspec(dllexport)
0187 #define H5_FCTESTDLLVAR extern __declspec(dllexport)
0188 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0189 #define H5_FCTESTDLL    __attribute__((visibility("default")))
0190 #define H5_FCTESTDLLVAR extern __attribute__((visibility("default")))
0191 #endif
0192 #else
0193 #if defined(_MSC_VER) /* MSVC Compiler Case */
0194 #define H5_FCTESTDLL    __declspec(dllimport)
0195 #define H5_FCTESTDLLVAR __declspec(dllimport)
0196 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0197 #define H5_FCTESTDLL    __attribute__((visibility("default")))
0198 #define H5_FCTESTDLLVAR extern __attribute__((visibility("default")))
0199 #endif
0200 #endif
0201 
0202 #ifndef H5_FCTESTDLL
0203 #define H5_FCTESTDLL
0204 #define H5_FCTESTDLLVAR extern
0205 #endif /* H5_FCTESTDLL */
0206 
0207 #if defined(hdf5_hl_f90cstub_shared_EXPORTS)
0208 #if defined(_MSC_VER) /* MSVC Compiler Case */
0209 #define HDF5_HL_F90CSTUBDLL    __declspec(dllexport)
0210 #define HDF5_HL_F90CSTUBDLLVAR extern __declspec(dllexport)
0211 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0212 #define HDF5_HL_F90CSTUBDLL    __attribute__((visibility("default")))
0213 #define HDF5_HL_F90CSTUBDLLVAR extern __attribute__((visibility("default")))
0214 #endif
0215 #else
0216 #if defined(_MSC_VER) /* MSVC Compiler Case */
0217 #define HDF5_HL_F90CSTUBDLL    __declspec(dllimport)
0218 #define HDF5_HL_F90CSTUBDLLVAR __declspec(dllimport)
0219 #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
0220 #define HDF5_HL_F90CSTUBDLL    __attribute__((visibility("default")))
0221 #define HDF5_HL_F90CSTUBDLLVAR extern __attribute__((visibility("default")))
0222 #endif
0223 #endif
0224 
0225 #ifndef HDF5_HL_F90CSTUBDLL
0226 #define HDF5_HL_F90CSTUBDLL
0227 #define HDF5_HL_F90CSTUBDLLVAR extern
0228 #endif /* HDF5_HL_F90CSTUBDLL */
0229 
0230 #else
0231 #define H5_DLL
0232 #define H5_DLLVAR extern
0233 #define H5TEST_DLL
0234 #define H5TEST_DLLVAR extern
0235 #define H5TOOLS_DLL
0236 #define H5TOOLS_DLLVAR extern
0237 #define H5_DLLCPP
0238 #define H5_DLLCPPVAR extern
0239 #define H5_HLDLL
0240 #define H5_HLDLLVAR extern
0241 #define H5_HLCPPDLL
0242 #define H5_HLCPPDLLVAR extern
0243 #define H5_FCDLL
0244 #define H5_FCDLLVAR extern
0245 #define H5_FCTESTDLL
0246 #define H5_FCTESTDLLVAR extern
0247 #define HDF5_HL_F90CSTUBDLL
0248 #define HDF5_HL_F90CSTUBDLLVAR extern
0249 #endif /* H5_BUILT_AS_DYNAMIC_LIB */
0250 
0251 #endif /* H5API_ADPT_H */