summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2009-10-20 05:07:50 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2009-10-20 05:07:50 (GMT)
commit5158a3f3e43d89737f824398187ad43f88e31bfa (patch)
treeb0c20412d9c9e9242db7a7872c3d7d687ce2a02a /examples
parent9c6753a50ee29dfa640d4b96843bce3c1cad3385 (diff)
downloadhdf5-5158a3f3e43d89737f824398187ad43f88e31bfa.zip
hdf5-5158a3f3e43d89737f824398187ad43f88e31bfa.tar.gz
hdf5-5158a3f3e43d89737f824398187ad43f88e31bfa.tar.bz2
[svn-r17686] Bug fix:
#define H5_USE_16_API was inserted AFTER #include <hdf5.>, too late was it to take effect. Instead, it caused a macro redefinition, flagged as an error by AIX. Fixed by moving it before the <hdf5.h>. Tested: Jam.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/testh5cc.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/testh5cc.sh.in b/examples/testh5cc.sh.in
index cd87e00..48a745c 100755
--- a/examples/testh5cc.sh.in
+++ b/examples/testh5cc.sh.in
@@ -117,8 +117,8 @@ EOF
# Generate HDF5 Main Program:
# An HDF5 sample program that calls hdf5 functions.
cat > $hdf5main <<EOF
-#include "hdf5.h"
#define H5_USE_16_API
+#include "hdf5.h"
#define H5FILE_NAME "tmp.h5"
int
main (void)
@@ -135,7 +135,7 @@ main (void)
printf("HDF5 C Sample program ran successfully. File %s generated.\n", H5FILE_NAME);
remove(H5FILE_NAME);
-
+
return 0;
}
EOF