diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2001-06-05 18:00:37 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2001-06-05 18:00:37 (GMT) |
commit | e8ed850fa86f3854f7abf6958268469c163d4ff9 (patch) | |
tree | 349739135b958ead298c186c6092a6c283d0aa9a /examples/h5_group.c | |
parent | 5fcefe52a26e265ab426ecc692bcf1e5cf8adb3f (diff) | |
download | hdf5-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_group.c')
-rw-r--r-- | examples/h5_group.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/h5_group.c b/examples/h5_group.c index e1181ba..f55262a 100644 --- a/examples/h5_group.c +++ b/examples/h5_group.c @@ -10,7 +10,7 @@ #include "hdf5.h" -#define FILE "group.h5" +#define H5FILE_NAME "group.h5" #define RANK 2 herr_t file_info(hid_t loc_id, const char *name, void *opdata); @@ -35,7 +35,7 @@ main(void) /* * Create a file. */ - file = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + file = H5Fcreate(H5FILE_NAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); /* * Create a group in the file. @@ -83,7 +83,7 @@ main(void) /* * Now reopen the file and group in the file. */ - file = H5Fopen(FILE, H5F_ACC_RDWR, H5P_DEFAULT); + file = H5Fopen(H5FILE_NAME, H5F_ACC_RDWR, H5P_DEFAULT); grp = H5Gopen(file, "Data"); /* |