diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-03-31 19:54:31 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2015-03-31 19:54:31 (GMT) |
commit | ccdcbec6350863cd4d85f8ed29404f594ce91277 (patch) | |
tree | 9749677ec4d4db1b393a64b38b3e2371b41d59e2 /src/H5api_adpt.h | |
parent | cf11eef3859e01be8e81592ca8e5f242d4734673 (diff) | |
download | hdf5-ccdcbec6350863cd4d85f8ed29404f594ce91277.zip hdf5-ccdcbec6350863cd4d85f8ed29404f594ce91277.tar.gz hdf5-ccdcbec6350863cd4d85f8ed29404f594ce91277.tar.bz2 |
[svn-r26678] add ifdef checks and setting for __attribute__ in a public place to allow usage in
public routines.
Diffstat (limited to 'src/H5api_adpt.h')
-rw-r--r-- | src/H5api_adpt.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/H5api_adpt.h b/src/H5api_adpt.h index 9b00bd9..98b0045 100644 --- a/src/H5api_adpt.h +++ b/src/H5api_adpt.h @@ -24,6 +24,13 @@ /* This will only be defined if HDF5 was built with CMake */ #ifdef H5_BUILT_AS_DYNAMIC_LIB +#ifdef __cplusplus +#define __attribute__(X) /*void*/ +#endif /* __cplusplus */ +#ifndef H5_HAVE_ATTRIBUTE +#define __attribute__(X) /*void*/ +#endif /* H5_HAVE_ATTRIBUTE */ + #if defined(hdf5_EXPORTS) #if defined (_MSC_VER) /* MSVC Compiler Case */ #define H5_DLL __declspec(dllexport) |