summaryrefslogtreecommitdiffstats
path: root/examples/h5_chunk_read.c
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2001-06-05 18:00:37 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2001-06-05 18:00:37 (GMT)
commite8ed850fa86f3854f7abf6958268469c163d4ff9 (patch)
tree349739135b958ead298c186c6092a6c283d0aa9a /examples/h5_chunk_read.c
parent5fcefe52a26e265ab426ecc692bcf1e5cf8adb3f (diff)
downloadhdf5-e8ed850fa86f3854f7abf6958268469c163d4ff9.zip
hdf5-e8ed850fa86f3854f7abf6958268469c163d4ff9.tar.gz
hdf5-e8ed850fa86f3854f7abf6958268469c163d4ff9.tar.bz2
[svn-r3959]
Purpose: Bug fix Description: All examples used "FILE" string in the #define preprocessor directive. That caused error on Windows platforms since FILE is a structure returned by fopen calls. Solution: Changed "FILE" to "H5FILE_NAME" Platforms tested: Linux (eirene)
Diffstat (limited to 'examples/h5_chunk_read.c')
-rw-r--r--examples/h5_chunk_read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/h5_chunk_read.c b/examples/h5_chunk_read.c
index f495f7b..6b72101 100644
--- a/examples/h5_chunk_read.c
+++ b/examples/h5_chunk_read.c
@@ -5,7 +5,7 @@
#include "hdf5.h"
-#define FILE "SDSextendible.h5"
+#define H5FILE_NAME "SDSextendible.h5"
#define DATASETNAME "ExtendibleArray"
#define RANK 2
#define RANKC 1
@@ -39,7 +39,7 @@ main (void)
/*
* Open the file and the dataset.
*/
- file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT);
+ file = H5Fopen(H5FILE_NAME, H5F_ACC_RDONLY, H5P_DEFAULT);
dataset = H5Dopen(file, DATASETNAME);
/*