summaryrefslogtreecommitdiffstats
path: root/test/external.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/external.c')
-rw-r--r--test/external.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/external.c b/test/external.c
index 03943f8..28fd264 100644
--- a/test/external.c
+++ b/test/external.c
@@ -13,7 +13,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#if !defined(WIN32)
#include <unistd.h>
+#endif
#include <H5config.h>
#ifndef HAVE_ATTRIBUTE
@@ -24,6 +26,11 @@
# define __unused__ __attribute__((unused))
#endif
+#if defined(WIN32)
+#undef __unused__
+#define __unused__
+#endif
+
#define TEST_FILE_NAME1 "extern_1.h5"
#define TEST_FILE_NAME2 "extern_2.h5"
#define TEST_FILE_NAME3 "extern_3.h5"