summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-19 19:12:21 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-19 19:12:21 (GMT)
commit0bf637b3d229f7b0723398bf1260bae8d912542b (patch)
tree6256a147a5bcb6bb0a65d85059590b35b92a8829
parente0dfe872a0c01d82a32e0e45c91012b301f8129e (diff)
downloadhdf5-0bf637b3d229f7b0723398bf1260bae8d912542b.zip
hdf5-0bf637b3d229f7b0723398bf1260bae8d912542b.tar.gz
hdf5-0bf637b3d229f7b0723398bf1260bae8d912542b.tar.bz2
[svn-r930] *** empty log message ***
-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);