summaryrefslogtreecommitdiffstats
path: root/test/shtype.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/shtype.c')
-rw-r--r--test/shtype.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/test/shtype.c b/test/shtype.c
index 80eccc0..7b05ed2 100644
--- a/test/shtype.c
+++ b/test/shtype.c
@@ -7,11 +7,18 @@
*
* Purpose: Tests datasets with shared data types.
*/
-#include <assert.h>
-#include <hdf5.h>
-#include <stdlib.h>
+/* See H5private.h for how to include headers */
+#undef NDEBUG
#include <H5config.h>
+
+#ifdef STDC_HEADERS
+# include <assert.h>
+# include <stdlib.h>
+#endif
+
+#include <hdf5.h>
+
#ifndef HAVE_ATTRIBUTE
# undef __attribute__
# define __attribute__(X) /*void*/
@@ -20,11 +27,6 @@
# define __unused__ __attribute__((unused))
#endif
-#if defined(WIN32)
-#undef __unused__
-#define __unused__
-#endif
-
#define TEST_FILE_NAME0 "shtype0.h5"
#define TEST_FILE_NAME1 "shtype1.h5"
#define TEST_FILE_NAME2A "shtype2a.h5"