summaryrefslogtreecommitdiffstats
path: root/c++/examples
diff options
context:
space:
mode:
Diffstat (limited to 'c++/examples')
-rw-r--r--c++/examples/chunks.cpp2
-rw-r--r--c++/examples/compound.cpp2
-rw-r--r--c++/examples/create.cpp2
-rw-r--r--c++/examples/extend_ds.cpp2
-rw-r--r--c++/examples/h5group.cpp2
-rw-r--r--c++/examples/readdata.cpp2
-rw-r--r--c++/examples/writedata.cpp2
7 files changed, 7 insertions, 7 deletions
diff --git a/c++/examples/chunks.cpp b/c++/examples/chunks.cpp
index 2f1d5a8..44d543e 100644
--- a/c++/examples/chunks.cpp
+++ b/c++/examples/chunks.cpp
@@ -18,7 +18,7 @@
*/
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif
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
diff --git a/c++/examples/create.cpp b/c++/examples/create.cpp
index 6ccba16..219d771 100644
--- a/c++/examples/create.cpp
+++ b/c++/examples/create.cpp
@@ -17,7 +17,7 @@
//
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif
diff --git a/c++/examples/extend_ds.cpp b/c++/examples/extend_ds.cpp
index 0da1df4..f6f5691 100644
--- a/c++/examples/extend_ds.cpp
+++ b/c++/examples/extend_ds.cpp
@@ -20,7 +20,7 @@
*/
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif
diff --git a/c++/examples/h5group.cpp b/c++/examples/h5group.cpp
index 6883c69..301d383 100644
--- a/c++/examples/h5group.cpp
+++ b/c++/examples/h5group.cpp
@@ -21,7 +21,7 @@
// the C version is used in this example.
//
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif
diff --git a/c++/examples/readdata.cpp b/c++/examples/readdata.cpp
index 7facebd..0805fa5 100644
--- a/c++/examples/readdata.cpp
+++ b/c++/examples/readdata.cpp
@@ -19,7 +19,7 @@
//
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif
diff --git a/c++/examples/writedata.cpp b/c++/examples/writedata.cpp
index 1f503fa..ed0268b 100644
--- a/c++/examples/writedata.cpp
+++ b/c++/examples/writedata.cpp
@@ -22,7 +22,7 @@
*/
#include <string>
-#ifndef H5_NO_NAMESPACE
+#if !defined(H5_NO_NAMESPACE) && !defined(H5_NO_STD)
using namespace std;
#endif