summaryrefslogtreecommitdiffstats
path: root/test/overhead.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/overhead.c')
-rw-r--r--test/overhead.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/test/overhead.c b/test/overhead.c
index 69ec1b2..ec3b877 100644
--- a/test/overhead.c
+++ b/test/overhead.c
@@ -10,13 +10,15 @@
/* See H5private.h for how to include headers */
#undef NDEBUG
-#include <hdf5.h>
+#include <H5config.h>
#ifdef STDC_HEADERS
# include <ctype.h>
# include <fcntl.h>
# include <stdlib.h>
# include <sys/stat.h>
+# include <string.h>
+# include <io.h>
#endif
#ifdef HAVE_UNISTD_H
@@ -24,6 +26,8 @@
# include <unistd.h>
#endif
+#include <hdf5.h>
+
#ifndef HAVE_ATTRIBUTE
# undef __attribute__
# define __attribute__(X) /*void*/
@@ -35,7 +39,7 @@
#define FILE_NAME_1 "overhead.h5"
#define FALSE 0
#define TRUE 1
-
+
typedef enum fill_t {
FILL_ALL,
FILL_FORWARD,
@@ -237,7 +241,7 @@ test(fill_t fill_style, const double splits[],
if (verbose) {
if (H5Fflush(file, H5F_SCOPE_LOCAL)<0) goto error;
if (fstat(fd, &sb)<0) goto error;
- /*
+ /*
* The extra cast in the following statement is a bug workaround
* for the Win32 version 5.0 compiler.
* 1998-11-06 ptl
@@ -281,8 +285,7 @@ test(fill_t fill_style, const double splits[],
* 1998-11-06 ptl
*/
printf("%-7s %8.3f\n", sname,
- (double)((hssize_t)((sb.st_size-cur_size[0]*sizeof(int))/
- cur_size[0])));
+ (double)((hssize_t)((sb.st_size-cur_size[0]*sizeof(int))/cur_size[0])));
}
close(fd);