diff options
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/dsets.c b/test/dsets.c index 104ee11..a929842 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -13,8 +13,9 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#if !defined(WIN32) #include <unistd.h> - +#endif #include <H5config.h> #ifndef HAVE_ATTRIBUTE # undef __attribute__ @@ -23,6 +24,10 @@ #else # define __unused__ __attribute__((unused)) #endif +#if defined(WIN32) +#undef __unused__ +#define __unused__ +#endif #ifndef HAVE_FUNCTION # undef __FUNCTION__ |