summaryrefslogtreecommitdiffstats
path: root/perform/overhead.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2010-11-17 00:33:48 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2010-11-17 00:33:48 (GMT)
commit10c3eb0a9fc87e6005c4dffb3dd078c37f584d26 (patch)
tree645d3cf9f0bdfb831a072c5ec89f93477dfa8e22 /perform/overhead.c
parent0ec9ac12efe8e2ff45b56d0e15779f565ff4d6e5 (diff)
downloadhdf5-10c3eb0a9fc87e6005c4dffb3dd078c37f584d26.zip
hdf5-10c3eb0a9fc87e6005c4dffb3dd078c37f584d26.tar.gz
hdf5-10c3eb0a9fc87e6005c4dffb3dd078c37f584d26.tar.bz2
[svn-r19797] Bug 2091: remove all Metraowerks compiler code bracheted by __MWERKS__.
Metraowerks compiler is no more. Make the code cleaner. Tested: H5committest plus jam serial.
Diffstat (limited to 'perform/overhead.c')
-rw-r--r--perform/overhead.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/perform/overhead.c b/perform/overhead.c
index 5076103..cfd96b8 100644
--- a/perform/overhead.c
+++ b/perform/overhead.c
@@ -220,15 +220,8 @@ test(fill_t fill_style, const double splits[],
if((fspace = H5Screate_simple(1, cur_size, max_size)) < 0) goto error;
if((mspace = H5Screate_simple(1, ch_size, ch_size)) < 0) goto error;
if((dset = H5Dcreate2(file, "chunked", H5T_NATIVE_INT,
- fspace, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0) goto error;
-
-#if !defined( __MWERKS__)
-
- /*
- workaround for a bug in the Metrowerks version 6.0 open function
- */
+ fspace, H5P_DEFAULT, dcpl, H5P_DEFAULT)) < 0) goto error;
if ((fd=HDopen(FILE_NAME_1, O_RDONLY, 0666)) < 0) goto error;
-#endif
for (i=1; i<=cur_size[0]; i++) {
@@ -264,8 +257,6 @@ test(fill_t fill_style, const double splits[],
}
-#if !defined( __MWERKS__)
-
/* Determine overhead */
if (verbose) {
if (H5Fflush(file, H5F_SCOPE_LOCAL) < 0) goto error;
@@ -279,7 +270,6 @@ test(fill_t fill_style, const double splits[],
(unsigned long)i,
(double)(hssize_t)(sb.st_size-i*sizeof(int))/(hssize_t)i);
}
-#endif
}
@@ -312,20 +302,14 @@ test(fill_t fill_style, const double splits[],
abort();
}
-#if !defined( __MWERKS__)
-
if (HDfstat(fd, &sb) < 0) goto error;
printf("%-7s %8.3f\n", sname,
(double)(hssize_t)(sb.st_size-cur_size[0]*sizeof(int))/
(hssize_t)cur_size[0]);
-#endif
-
}
-#if !defined( __MWERKS__)
HDclose(fd);
-#endif
return 0;