summaryrefslogtreecommitdiffstats
path: root/test/flush2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/flush2.c')
-rw-r--r--test/flush2.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/test/flush2.c b/test/flush2.c
index 6e24075..f9ab526 100644
--- a/test/flush2.c
+++ b/test/flush2.c
@@ -10,14 +10,20 @@
* as the file was flushed first. This half tries to read the
* file created by the first half.
*/
+
+/* See H5private.h for how to include headers */
#undef NDEBUG
-#include <assert.h>
+#include <H5config.h>
+
+#ifdef STDC_HEADERS
+# include <assert.h>
+# include <math.h>
+# include <stdio.h>
+# include <stdlib.h>
+#endif
+
#include <hdf5.h>
-#include <math.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <H5config.h>
#ifndef HAVE_ATTRIBUTE
# undef __attribute__
# define __attribute__(X) /*void*/