summaryrefslogtreecommitdiffstats
path: root/c++/examples/compound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c++/examples/compound.cpp')
-rw-r--r--c++/examples/compound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/c++/examples/compound.cpp b/c++/examples/compound.cpp
index c480599..c559eb7 100644
--- a/c++/examples/compound.cpp
+++ b/c++/examples/compound.cpp
@@ -19,7 +19,7 @@
*/
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif