summaryrefslogtreecommitdiffstats
path: root/c++/test/tattr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/test/tattr.cpp')
-rw-r--r--c++/test/tattr.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/c++/test/tattr.cpp b/c++/test/tattr.cpp
index 616c73a..34bb6d1 100644
--- a/c++/test/tattr.cpp
+++ b/c++/test/tattr.cpp
@@ -19,13 +19,18 @@
***************************************************************************/
-#include <string>
-
#ifdef OLD_HEADER_FILENAME
#include <iostream.h>
#else
#include <iostream>
#endif
+#include <string>
+
+#ifndef H5_NO_NAMESPACE
+#ifndef H5_NO_STD
+ using std::string;
+#endif // H5_NO_STD
+#endif
#include "testhdf5.h" // C test header file
#include "H5Cpp.h" // C++ API header file