summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 66bf7eb..f7a4171 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -279,15 +279,10 @@
* big deal if we don't.
*/
#ifdef __cplusplus
-# define UNUSED /*void*/
-# define NORETURN /*void*/
+# define __attribute__(X) /*void*/
#else /* __cplusplus */
-#ifdef H5_HAVE_ATTRIBUTE
-# define UNUSED __attribute__((unused))
-# define NORETURN __attribute__((noreturn))
-#else
-# define UNUSED /*void*/
-# define NORETURN /*void*/
+#ifndef H5_HAVE_ATTRIBUTE
+# define __attribute__(X) /*void*/
#endif
#endif /* __cplusplus */