summaryrefslogtreecommitdiffstats
path: root/src/H5api_adpt.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-10-01 16:47:45 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-10-01 16:47:45 (GMT)
commit1ba1f2f3222cbe8df0bf601929a4bffd478d7e02 (patch)
treeae51dfc33cf40432dad25a5088767115a98f195e /src/H5api_adpt.h
parent8eef7d295cc3dd134aef0a826f1de4287629996d (diff)
downloadhdf5-1ba1f2f3222cbe8df0bf601929a4bffd478d7e02.zip
hdf5-1ba1f2f3222cbe8df0bf601929a4bffd478d7e02.tar.gz
hdf5-1ba1f2f3222cbe8df0bf601929a4bffd478d7e02.tar.bz2
Source formatted
Diffstat (limited to 'src/H5api_adpt.h')
-rw-r--r--src/H5api_adpt.h344
1 files changed, 172 insertions, 172 deletions
diff --git a/src/H5api_adpt.h b/src/H5api_adpt.h
index 76f8d85..6328244 100644
--- a/src/H5api_adpt.h
+++ b/src/H5api_adpt.h
@@ -27,18 +27,18 @@
* attributes we use.
*/
#ifdef __cplusplus
-# define H5_ATTR_FORMAT(X,Y,Z) /*void*/
-# define H5_ATTR_UNUSED /*void*/
-# define H5_ATTR_NORETURN /*void*/
-#else /* __cplusplus */
+#define H5_ATTR_FORMAT(X, Y, Z) /*void*/
+#define H5_ATTR_UNUSED /*void*/
+#define H5_ATTR_NORETURN /*void*/
+#else /* __cplusplus */
#if defined(H5_HAVE_ATTRIBUTE) && !defined(__SUNPRO_C)
-# define H5_ATTR_FORMAT(X,Y,Z) __attribute__((format(X, Y, Z)))
-# define H5_ATTR_UNUSED __attribute__((unused))
-# define H5_ATTR_NORETURN __attribute__((noreturn))
+#define H5_ATTR_FORMAT(X, Y, Z) __attribute__((format(X, Y, Z)))
+#define H5_ATTR_UNUSED __attribute__((unused))
+#define H5_ATTR_NORETURN __attribute__((noreturn))
#else
-# define H5_ATTR_FORMAT(X,Y,Z) /*void*/
-# define H5_ATTR_UNUSED /*void*/
-# define H5_ATTR_NORETURN /*void*/
+#define H5_ATTR_FORMAT(X, Y, Z) /*void*/
+#define H5_ATTR_UNUSED /*void*/
+#define H5_ATTR_NORETURN /*void*/
#endif
#endif /* __cplusplus */
@@ -46,231 +46,231 @@
#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 */