diff options
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index f479d4b..836e929 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -186,12 +186,17 @@ * suppresses warnings about unused function arguments. It's no big deal if * we don't. */ +#ifdef __cplusplus +# define __attribute__(X) /*void*/ +# define UNUSED /*void*/ +#else /* __cplusplus */ #ifdef H5_HAVE_ATTRIBUTE # define UNUSED __attribute__((unused)) #else # define __attribute__(X) /*void*/ # define UNUSED /*void*/ #endif +#endif /* __cplusplus */ /* * Does the compiler expand __FUNCTION__ to be the name of the function |