summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 984f7da..0e6ff1e 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -277,12 +277,15 @@
#ifdef __cplusplus
# define __attribute__(X) /*void*/
# define UNUSED /*void*/
+# define NORETURN /*void*/
#else /* __cplusplus */
#ifdef H5_HAVE_ATTRIBUTE
# define UNUSED __attribute__((unused))
+# define NORETURN __attribute__((noreturn))
#else
# define __attribute__(X) /*void*/
# define UNUSED /*void*/
+# define NORETURN /*void*/
#endif
#endif /* __cplusplus */