From f9397189af061a0d5e05107204d40bee94588ea5 Mon Sep 17 00:00:00 2001 From: schnetter Date: Tue, 15 Jan 2008 19:37:39 +0000 Subject: 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 --- src/H5IO.cc | 4 ++++ src/H5IO.hh | 4 ++++ src/H5IOwriter.cc | 4 ++++ src/H5writer.c | 4 ++++ 4 files changed, 16 insertions(+) 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 #include #include + +/* Some macros to fix compatibility issues as long as 1.8.0 is in beta + phase */ +#define H5_USE_16_API 1 #include #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 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 + +/* Some macros to fix compatibility issues as long as 1.8.0 is in beta + phase */ +#define H5_USE_16_API 1 #include #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 + +/* Some macros to fix compatibility issues as long as 1.8.0 is in beta + phase */ +#define H5_USE_16_API 1 #include #define WRITE_H5 #define FILE "SDS.h5" -- cgit v1.2.3