diff options
Diffstat (limited to 'test/external.c')
-rw-r--r-- | test/external.c | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/test/external.c b/test/external.c index 28fd264..363a9f2 100644 --- a/test/external.c +++ b/test/external.c @@ -7,17 +7,26 @@ * * Purpose: Tests datasets stored in external raw files. */ -#include <assert.h> -#include <fcntl.h> -#include <hdf5.h> -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#if !defined(WIN32) -#include <unistd.h> -#endif +/* See H5private.h for how to include headers */ +#undef NDEBUG #include <H5config.h> + +#ifdef STDC_HEADERS +# include <assert.h> +# include <fcntl.h> +# include <stdio.h> +# include <stdlib.h> +# include <string.h> +#endif + +#ifdef HAVE_UNISTD_H +# include <sys/types.h> +# include <unistd.h> +#endif + +#include <hdf5.h> + #ifndef HAVE_ATTRIBUTE # undef __attribute__ # define __attribute__(X) /*void*/ @@ -26,11 +35,6 @@ # 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" @@ -606,7 +610,8 @@ test_2 (void) hs_space = H5Scopy (space); assert (hs_space>=0); - status = H5Sselect_hyperslab (hs_space, H5S_SELECT_SET, &hs_start, NULL, &hs_count, NULL); + status = H5Sselect_hyperslab (hs_space, H5S_SELECT_SET, &hs_start, + NULL, &hs_count, NULL); assert (status>=0); memset (whole, 0, sizeof(whole)); |