diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-11-16 21:40:04 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-11-16 21:40:04 (GMT) |
commit | c249ccfd1502c428b820d6316a5cf7a0a9d5ca82 (patch) | |
tree | 6480ed46a173986a61e556339a97330a5d81907f /perform/overhead.c | |
parent | 69a531786037ecb77933e676d05c5a5cd1dbba4b (diff) | |
download | hdf5-c249ccfd1502c428b820d6316a5cf7a0a9d5ca82.zip hdf5-c249ccfd1502c428b820d6316a5cf7a0a9d5ca82.tar.gz hdf5-c249ccfd1502c428b820d6316a5cf7a0a9d5ca82.tar.bz2 |
[svn-r19796] 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.c | 18 |
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; |