diff options
author | Sean McBride <sean@rogue-research.com> | 2021-03-10 17:52:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-10 17:52:48 (GMT) |
commit | 7501f96ab9605e11c58bc0c9e6412e4db30ba7db (patch) | |
tree | 6da037eb150a567127e6422367452386c3d835c1 /c++/src/H5Include.h | |
parent | 20c452fe5c0955a81ae1222d846632f1525f08f4 (diff) | |
download | hdf5-7501f96ab9605e11c58bc0c9e6412e4db30ba7db.zip hdf5-7501f96ab9605e11c58bc0c9e6412e4db30ba7db.tar.gz hdf5-7501f96ab9605e11c58bc0c9e6412e4db30ba7db.tar.bz2 |
Added C++11 override keyword where appropriate (#433)
Added H5_OVERRIDE macro for compatibility with both C++11 and older.
Diffstat (limited to 'c++/src/H5Include.h')
-rw-r--r-- | c++/src/H5Include.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/c++/src/H5Include.h b/c++/src/H5Include.h index e662d90..0dc930d 100644 --- a/c++/src/H5Include.h +++ b/c++/src/H5Include.h @@ -24,3 +24,10 @@ * magic number as prefix and checksum as suffix for all chunks. */ #define H5O_VERSION_2 2 + +// Define H5_OVERRIDE to override for C++11. +#if defined(__cplusplus) && (201103L <= __cplusplus) +#define H5_OVERRIDE override +#else +#define H5_OVERRIDE +#endif |