summaryrefslogtreecommitdiffstats
path: root/perform/chunk.c
diff options
context:
space:
mode:
Diffstat (limited to 'perform/chunk.c')
-rw-r--r--perform/chunk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perform/chunk.c b/perform/chunk.c
index f74397b..717858b 100644
--- a/perform/chunk.c
+++ b/perform/chunk.c
@@ -33,7 +33,7 @@
#endif
-#ifndef H5_HAVE_ATTRIBUTE
+#if !defined(H5_HAVE_ATTRIBUTE) || defined __cplusplus
# undef __attribute__
# define __attribute__(X) /*void*/
# define UNUSED /*void*/