diff options
author | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-10-19 20:50:17 (GMT) |
---|---|---|
committer | Binh-Minh Ribler <bmribler@hdfgroup.org> | 2016-10-19 20:50:17 (GMT) |
commit | a903cbafa863f22d360e7ef59f787b4fe0c0d2c3 (patch) | |
tree | ffcd2e4953ebf5e86621a904aba4cc8207b24185 /c++/test/dsets.cpp | |
parent | b6bb7c123a02570a33f02257d738e50195dbeb3a (diff) | |
download | hdf5-a903cbafa863f22d360e7ef59f787b4fe0c0d2c3.zip hdf5-a903cbafa863f22d360e7ef59f787b4fe0c0d2c3.tar.gz hdf5-a903cbafa863f22d360e7ef59f787b4fe0c0d2c3.tar.bz2 |
Description:
Removed obsolet macros from C++ API:
H5_NO_NAMESPACE, H5_NO_STD, __cplusplus
Leave OLD_HEADER_FILENAME because iostream.h might still be in use,
until further checking is done.
Platforms tested:
Linux/32 2.6 (jam)
Linux/64 (platypus)
Darwin (osx1010test)
Jelly
Diffstat (limited to 'c++/test/dsets.cpp')
-rw-r--r-- | c++/test/dsets.cpp | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/c++/test/dsets.cpp b/c++/test/dsets.cpp index 5d0c8a1..8752744 100644 --- a/c++/test/dsets.cpp +++ b/c++/test/dsets.cpp @@ -30,21 +30,14 @@ #else #include <iostream> #endif -#include <string> - -#ifndef H5_NO_NAMESPACE -#ifndef H5_NO_STD - using std::cerr; - using std::endl; -#endif // H5_NO_STD -#endif +using std::cerr; +using std::endl; +#include <string> #include "H5Cpp.h" // C++ API header file +using namespace H5; -#ifndef H5_NO_NAMESPACE - using namespace H5; -#endif - +#include "h5test.h" #include "h5cpputil.h" // C++ utilility header file const H5std_string FILE1("dataset.h5"); @@ -1175,9 +1168,7 @@ test_types(H5File& file) * *------------------------------------------------------------------------- */ -#ifdef __cplusplus extern "C" -#endif void test_dset() { hid_t fapl_id; @@ -1235,9 +1226,7 @@ void test_dset() * *------------------------------------------------------------------------- */ -#ifdef __cplusplus extern "C" -#endif void cleanup_dsets() { HDremove(FILE1.c_str()); |