diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2001-06-05 21:10:59 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2001-06-05 21:10:59 (GMT) |
commit | 9275de5237785a4091a3b24479d84be81d3178d5 (patch) | |
tree | bbf5dbe42dc0883418487d1e7da45481c8872659 /examples/h5_attribute.c | |
parent | e60434c3273472e85a80ff47184d2869e16312a9 (diff) | |
download | hdf5-9275de5237785a4091a3b24479d84be81d3178d5.zip hdf5-9275de5237785a4091a3b24479d84be81d3178d5.tar.gz hdf5-9275de5237785a4091a3b24479d84be81d3178d5.tar.bz2 |
[svn-r3960]
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:
HPUX 11.00 (kelgia)
Diffstat (limited to 'examples/h5_attribute.c')
-rw-r--r-- | examples/h5_attribute.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/h5_attribute.c b/examples/h5_attribute.c index 87ffa03..6bc33f8 100644 --- a/examples/h5_attribute.c +++ b/examples/h5_attribute.c @@ -13,7 +13,7 @@ #include <stdlib.h> #include "hdf5.h" -#define FILE "Attributes.h5" +#define H5FILE_NAME "Attributes.h5" #define RANK 1 /* Rank and size of the dataset */ #define SIZE 7 @@ -66,7 +66,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 the dataspace for the dataset in the file. @@ -154,7 +154,7 @@ main (void) /* * Reopen the file. */ - file = H5Fopen(FILE, H5F_ACC_RDONLY, H5P_DEFAULT); + file = H5Fopen(H5FILE_NAME, H5F_ACC_RDONLY, H5P_DEFAULT); /* * Open the dataset. |