diff options
author | schnetter <schnetter@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2008-01-15 19:37:39 +0000 |
---|---|---|
committer | schnetter <schnetter@21a6bef8-4479-4f54-8f8d-0db94a2919ef> | 2008-01-15 19:37:39 +0000 |
commit | f9397189af061a0d5e05107204d40bee94588ea5 (patch) | |
tree | c4eada3fa0ab401f3b2d9545eb2b27505752a112 | |
parent | 55b510784c16c992a3b8babadf03c2a7eee95331 (diff) |
Choose HDF5 1.6 API when compiled with HDF5 1.8.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusExternal/FlexIO/trunk@83 21a6bef8-4479-4f54-8f8d-0db94a2919ef
-rw-r--r-- | src/H5IO.cc | 4 | ||||
-rw-r--r-- | src/H5IO.hh | 4 | ||||
-rw-r--r-- | src/H5IOwriter.cc | 4 | ||||
-rw-r--r-- | src/H5writer.c | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/src/H5IO.cc b/src/H5IO.cc index e457f99..7a2a07b 100644 --- a/src/H5IO.cc +++ b/src/H5IO.cc @@ -1,6 +1,10 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> + +/* Some macros to fix compatibility issues as long as 1.8.0 is in beta + phase */ +#define H5_USE_16_API 1 #include <hdf5.h> #include "H5IO.hh" diff --git a/src/H5IO.hh b/src/H5IO.hh index 891f9bc..7062ca4 100644 --- a/src/H5IO.hh +++ b/src/H5IO.hh @@ -34,6 +34,10 @@ Buffer Policy * ReadBufferSize */ + +/* Some macros to fix compatibility issues as long as 1.8.0 is in beta + phase */ +#define H5_USE_16_API 1 #include <hdf5.h> class H5IO : public IObase { diff --git a/src/H5IOwriter.cc b/src/H5IOwriter.cc index 2b133fe..71d9845 100644 --- a/src/H5IOwriter.cc +++ b/src/H5IOwriter.cc @@ -3,6 +3,10 @@ * Data conversion is performed during write operation. */ #include <H5IO.hh> + +/* Some macros to fix compatibility issues as long as 1.8.0 is in beta + phase */ +#define H5_USE_16_API 1 #include <hdf5.h> #define FILE "SDS.h5" diff --git a/src/H5writer.c b/src/H5writer.c index 2f133f7..2e86336 100644 --- a/src/H5writer.c +++ b/src/H5writer.c @@ -3,6 +3,10 @@ * Data conversion is performed during write operation. */ // #include <H5IO.hh> + +/* Some macros to fix compatibility issues as long as 1.8.0 is in beta + phase */ +#define H5_USE_16_API 1 #include <hdf5.h> #define WRITE_H5 #define FILE "SDS.h5" |