summaryrefslogtreecommitdiffstats
path: root/test/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mount.c')
-rw-r--r--test/mount.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/mount.c b/test/mount.c
index b6231a8..5eb0d49 100644
--- a/test/mount.c
+++ b/test/mount.c
@@ -7,8 +7,16 @@
*
* Purpose: Tests file mounting.
*/
+
+/* See H5private.h for how to include headers */
+#undef NDEBUG
+#include <H5config.h>
+
+#ifdef STDC_HEADERS
+# include <stdlib.h>
+#endif
+
#include <hdf5.h>
-#include <stdlib.h>
#define FALSE 0
#define TRUE 1
@@ -17,7 +25,6 @@
#define FILE_NAME_2 "mount_2.h5"
#define FILE_NAME_3 "mount_3.h5"
-#include <H5config.h>
#ifndef HAVE_ATTRIBUTE
# undef __attribute__
# define __attribute__(X) /*void*/
@@ -26,11 +33,6 @@
# define __unused__ __attribute__((unused))
#endif
-#if defined(WIN32)
-#undef __unused__
-#define __unused__
-#endif
-
/*-------------------------------------------------------------------------
* Function: cleanup