summaryrefslogtreecommitdiffstats
path: root/src/H5api_adpt.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-10-01 14:04:36 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-10-01 14:04:36 (GMT)
commitf1ba03cea5b82699a984c80bd2deac14fdc8df18 (patch)
treeebe777c3e0b83f4c4cec9212731da9ebe0a0cfd3 /src/H5api_adpt.h
parent10343c197906415388f2a4c8d292e21d25cf7381 (diff)
downloadhdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.zip
hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.gz
hdf5-f1ba03cea5b82699a984c80bd2deac14fdc8df18.tar.bz2
Source formatted
Diffstat (limited to 'src/H5api_adpt.h')
-rw-r--r--src/H5api_adpt.h325
1 files changed, 162 insertions, 163 deletions
diff --git a/src/H5api_adpt.h b/src/H5api_adpt.h
index 0ff0f74..838cbf5 100644
--- a/src/H5api_adpt.h
+++ b/src/H5api_adpt.h
@@ -19,236 +19,235 @@
#ifndef H5API_ADPT_H
#define H5API_ADPT_H
-
/* This will only be defined if HDF5 was built with CMake */
#ifdef H5_BUILT_AS_DYNAMIC_LIB
#if defined(hdf5_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_DLL __declspec(dllexport)
- #define H5_DLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_DLL __attribute__ ((visibility("default")))
- #define H5_DLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_DLL __declspec(dllexport)
+#define H5_DLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_DLL __attribute__((visibility("default")))
+#define H5_DLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_DLL __declspec(dllimport)
- #define H5_DLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_DLL __attribute__ ((visibility("default")))
- #define H5_DLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_DLL __declspec(dllimport)
+#define H5_DLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_DLL __attribute__((visibility("default")))
+#define H5_DLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5_DLL
- #define H5_DLL
- #define H5_DLLVAR extern
+#define H5_DLL
+#define H5_DLLVAR extern
#endif /* _HDF5DLL_ */
#if defined(hdf5_test_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5TEST_DLL __declspec(dllexport)
- #define H5TEST_DLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5TEST_DLL __attribute__ ((visibility("default")))
- #define H5TEST_DLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5TEST_DLL __declspec(dllexport)
+#define H5TEST_DLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5TEST_DLL __attribute__((visibility("default")))
+#define H5TEST_DLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5TEST_DLL __declspec(dllimport)
- #define H5TEST_DLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5TEST_DLL __attribute__ ((visibility("default")))
- #define H5TEST_DLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5TEST_DLL __declspec(dllimport)
+#define H5TEST_DLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5TEST_DLL __attribute__((visibility("default")))
+#define H5TEST_DLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5TEST_DLL
- #define H5TEST_DLL
- #define H5TEST_DLLVAR extern
+#define H5TEST_DLL
+#define H5TEST_DLLVAR extern
#endif /* H5TEST_DLL */
#if defined(hdf5_tools_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5TOOLS_DLL __declspec(dllexport)
- #define H5TOOLS_DLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5TOOLS_DLL __attribute__ ((visibility("default")))
- #define H5TOOLS_DLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5TOOLS_DLL __declspec(dllexport)
+#define H5TOOLS_DLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5TOOLS_DLL __attribute__((visibility("default")))
+#define H5TOOLS_DLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5TOOLS_DLL __declspec(dllimport)
- #define H5TOOLS_DLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5TOOLS_DLL __attribute__ ((visibility("default")))
- #define H5TOOLS_DLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5TOOLS_DLL __declspec(dllimport)
+#define H5TOOLS_DLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5TOOLS_DLL __attribute__((visibility("default")))
+#define H5TOOLS_DLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5TOOLS_DLL
- #define H5TOOLS_DLL
- #define H5TOOLS_DLLVAR extern
+#define H5TOOLS_DLL
+#define H5TOOLS_DLLVAR extern
#endif /* H5TOOLS_DLL */
#if defined(hdf5_cpp_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_DLLCPP __declspec(dllexport)
- #define H5_DLLCPPVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_DLLCPP __attribute__ ((visibility("default")))
- #define H5_DLLCPPVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_DLLCPP __declspec(dllexport)
+#define H5_DLLCPPVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_DLLCPP __attribute__((visibility("default")))
+#define H5_DLLCPPVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_DLLCPP __declspec(dllimport)
- #define H5_DLLCPPVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_DLLCPP __attribute__ ((visibility("default")))
- #define H5_DLLCPPVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_DLLCPP __declspec(dllimport)
+#define H5_DLLCPPVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_DLLCPP __attribute__((visibility("default")))
+#define H5_DLLCPPVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5_DLLCPP
- #define H5_DLLCPP
- #define H5_DLLCPPVAR extern
+#define H5_DLLCPP
+#define H5_DLLCPPVAR extern
#endif /* H5_DLLCPP */
#if defined(hdf5_hl_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_HLDLL __declspec(dllexport)
- #define H5_HLDLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_HLDLL __attribute__ ((visibility("default")))
- #define H5_HLDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_HLDLL __declspec(dllexport)
+#define H5_HLDLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_HLDLL __attribute__((visibility("default")))
+#define H5_HLDLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_HLDLL __declspec(dllimport)
- #define H5_HLDLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_HLDLL __attribute__ ((visibility("default")))
- #define H5_HLDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_HLDLL __declspec(dllimport)
+#define H5_HLDLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_HLDLL __attribute__((visibility("default")))
+#define H5_HLDLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5_HLDLL
- #define H5_HLDLL
- #define H5_HLDLLVAR extern
+#define H5_HLDLL
+#define H5_HLDLLVAR extern
#endif /* H5_HLDLL */
#if defined(hdf5_hl_cpp_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_HLCPPDLL __declspec(dllexport)
- #define H5_HLCPPDLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_HLCPPDLL __attribute__ ((visibility("default")))
- #define H5_HLCPPDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_HLCPPDLL __declspec(dllexport)
+#define H5_HLCPPDLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_HLCPPDLL __attribute__((visibility("default")))
+#define H5_HLCPPDLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_HLCPPDLL __declspec(dllimport)
- #define H5_HLCPPDLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_HLCPPDLL __attribute__ ((visibility("default")))
- #define H5_HLCPPDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_HLCPPDLL __declspec(dllimport)
+#define H5_HLCPPDLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_HLCPPDLL __attribute__((visibility("default")))
+#define H5_HLCPPDLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5_HLCPPDLL
- #define H5_HLCPPDLL
- #define H5_HLCPPDLLVAR extern
+#define H5_HLCPPDLL
+#define H5_HLCPPDLLVAR extern
#endif /* H5_HLCPPDLL */
#if defined(hdf5_f90cstub_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_FCDLL __declspec(dllexport)
- #define H5_FCDLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_FCDLL __attribute__ ((visibility("default")))
- #define H5_FCDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_FCDLL __declspec(dllexport)
+#define H5_FCDLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_FCDLL __attribute__((visibility("default")))
+#define H5_FCDLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_FCDLL __declspec(dllimport)
- #define H5_FCDLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_FCDLL __attribute__ ((visibility("default")))
- #define H5_FCDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_FCDLL __declspec(dllimport)
+#define H5_FCDLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_FCDLL __attribute__((visibility("default")))
+#define H5_FCDLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5_FCDLL
- #define H5_FCDLL
- #define H5_FCDLLVAR extern
+#define H5_FCDLL
+#define H5_FCDLLVAR extern
#endif /* H5_FCDLL */
#if defined(hdf5_test_f90cstub_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_FCTESTDLL __declspec(dllexport)
- #define H5_FCTESTDLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_FCTESTDLL __attribute__ ((visibility("default")))
- #define H5_FCTESTDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_FCTESTDLL __declspec(dllexport)
+#define H5_FCTESTDLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_FCTESTDLL __attribute__((visibility("default")))
+#define H5_FCTESTDLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define H5_FCTESTDLL __declspec(dllimport)
- #define H5_FCTESTDLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define H5_FCTESTDLL __attribute__ ((visibility("default")))
- #define H5_FCTESTDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define H5_FCTESTDLL __declspec(dllimport)
+#define H5_FCTESTDLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define H5_FCTESTDLL __attribute__((visibility("default")))
+#define H5_FCTESTDLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef H5_FCTESTDLL
- #define H5_FCTESTDLL
- #define H5_FCTESTDLLVAR extern
+#define H5_FCTESTDLL
+#define H5_FCTESTDLLVAR extern
#endif /* H5_FCTESTDLL */
#if defined(hdf5_hl_f90cstub_shared_EXPORTS)
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define HDF5_HL_F90CSTUBDLL __declspec(dllexport)
- #define HDF5_HL_F90CSTUBDLLVAR extern __declspec(dllexport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define HDF5_HL_F90CSTUBDLL __attribute__ ((visibility("default")))
- #define HDF5_HL_F90CSTUBDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define HDF5_HL_F90CSTUBDLL __declspec(dllexport)
+#define HDF5_HL_F90CSTUBDLLVAR extern __declspec(dllexport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define HDF5_HL_F90CSTUBDLL __attribute__((visibility("default")))
+#define HDF5_HL_F90CSTUBDLLVAR extern __attribute__((visibility("default")))
+#endif
#else
- #if defined (_MSC_VER) /* MSVC Compiler Case */
- #define HDF5_HL_F90CSTUBDLL __declspec(dllimport)
- #define HDF5_HL_F90CSTUBDLLVAR __declspec(dllimport)
- #elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
- #define HDF5_HL_F90CSTUBDLL __attribute__ ((visibility("default")))
- #define HDF5_HL_F90CSTUBDLLVAR extern __attribute__ ((visibility("default")))
- #endif
+#if defined(_MSC_VER) /* MSVC Compiler Case */
+#define HDF5_HL_F90CSTUBDLL __declspec(dllimport)
+#define HDF5_HL_F90CSTUBDLLVAR __declspec(dllimport)
+#elif (__GNUC__ >= 4) /* GCC 4.x has support for visibility options */
+#define HDF5_HL_F90CSTUBDLL __attribute__((visibility("default")))
+#define HDF5_HL_F90CSTUBDLLVAR extern __attribute__((visibility("default")))
+#endif
#endif
#ifndef HDF5_HL_F90CSTUBDLL
- #define HDF5_HL_F90CSTUBDLL
- #define HDF5_HL_F90CSTUBDLLVAR extern
+#define HDF5_HL_F90CSTUBDLL
+#define HDF5_HL_F90CSTUBDLLVAR extern
#endif /* HDF5_HL_F90CSTUBDLL */
#else
- #define H5_DLL
- #define H5_DLLVAR extern
- #define H5TEST_DLL
- #define H5TEST_DLLVAR extern
- #define H5TOOLS_DLL
- #define H5TOOLS_DLLVAR extern
- #define H5_DLLCPP
- #define H5_DLLCPPVAR extern
- #define H5_HLDLL
- #define H5_HLDLLVAR extern
- #define H5_HLCPPDLL
- #define H5_HLCPPDLLVAR extern
- #define H5_FCDLL
- #define H5_FCDLLVAR extern
- #define H5_FCTESTDLL
- #define H5_FCTESTDLLVAR extern
- #define HDF5_HL_F90CSTUBDLL
- #define HDF5_HL_F90CSTUBDLLVAR extern
+#define H5_DLL
+#define H5_DLLVAR extern
+#define H5TEST_DLL
+#define H5TEST_DLLVAR extern
+#define H5TOOLS_DLL
+#define H5TOOLS_DLLVAR extern
+#define H5_DLLCPP
+#define H5_DLLCPPVAR extern
+#define H5_HLDLL
+#define H5_HLDLLVAR extern
+#define H5_HLCPPDLL
+#define H5_HLCPPDLLVAR extern
+#define H5_FCDLL
+#define H5_FCDLLVAR extern
+#define H5_FCTESTDLL
+#define H5_FCTESTDLLVAR extern
+#define HDF5_HL_F90CSTUBDLL
+#define HDF5_HL_F90CSTUBDLLVAR extern
#endif /* H5_BUILT_AS_DYNAMIC_LIB */
#endif /* H5API_ADPT_H */