summaryrefslogtreecommitdiffstats
path: root/test/chunk.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-10-23 18:16:48 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-10-23 18:16:48 (GMT)
commit3a7c54b06f37b0648e1d8f337d11a1f13b67d60c (patch)
tree7d5dc6b2904a184459367a71a2f45817309ff38f /test/chunk.c
parent9bba487ca4dc89140684da78cd541aba4403df53 (diff)
downloadhdf5-3a7c54b06f37b0648e1d8f337d11a1f13b67d60c.zip
hdf5-3a7c54b06f37b0648e1d8f337d11a1f13b67d60c.tar.gz
hdf5-3a7c54b06f37b0648e1d8f337d11a1f13b67d60c.tar.bz2
[svn-r781] Windows NT port-tested on Unix and NT
changes: defined __unused__ as nothing, other little changes. all changes are surrounded by #if defined(WIN32)
Diffstat (limited to 'test/chunk.c')
-rw-r--r--test/chunk.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/chunk.c b/test/chunk.c
index 92279ac..c0cbb9f 100644
--- a/test/chunk.c
+++ b/test/chunk.c
@@ -25,6 +25,11 @@
# define __unused__ __attribute__((unused))
#endif
+#if defined(WIN32)
+#undef __unused__
+#define __unused__
+#endif
+
#define FILE_NAME "chunk.h5"
#define LINESPOINTS "lines"
#define CH_SIZE 100 /*squared in terms of bytes */
@@ -235,7 +240,12 @@ static double
test_diag (int op, hsize_t cache_size, hsize_t io_size, hsize_t offset)
{
hid_t file, dset, mem_space, file_space;
- hsize_t i, hs_size[2], nio=0;
+ hsize_t i, hs_size[2];
+#if defined(WIN32)
+ hssize_t nio = 0;
+#else
+ hsize_t nio = 0;
+#endif
hssize_t hs_offset[2];
char *buf = calloc (1, SQUARE (io_size));
int mdc_nelmts, rdcc_nelmts;