summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/backward
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2010-04-13 20:24:40 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2010-04-13 20:24:40 +0000
commit896e7917c0db680bf7f1916fbb2da484c1898291 (patch)
tree82944c6a0d7468590cfd42ddfd5e9e782fbc8743 /libstdc++-v3/include/backward
parent014edf49f89501a29ce992a62507a704a00c74dd (diff)
downloadgcc-896e7917c0db680bf7f1916fbb2da484c1898291.tar.gz
hash_map: Don't #include "backward_warning.h" if _GLIBCXX_PERMIT_BACKWARD_HASH is defined.
* include/backward/hash_map: Don't #include "backward_warning.h" if _GLIBCXX_PERMIT_BACKWARD_HASH is defined. * include/backward/hash_set: Likewise. From-SVN: r158281
Diffstat (limited to 'libstdc++-v3/include/backward')
-rw-r--r--libstdc++-v3/include/backward/hash_map3
-rw-r--r--libstdc++-v3/include/backward/hash_set3
2 files changed, 6 insertions, 0 deletions
diff --git a/libstdc++-v3/include/backward/hash_map b/libstdc++-v3/include/backward/hash_map
index 813ec472860..fe6e785c012 100644
--- a/libstdc++-v3/include/backward/hash_map
+++ b/libstdc++-v3/include/backward/hash_map
@@ -57,7 +57,10 @@
#ifndef _BACKWARD_HASH_MAP
#define _BACKWARD_HASH_MAP 1
+#ifndef _GLIBCXX_PERMIT_BACKWARD_HASH
#include "backward_warning.h"
+#endif
+
#include <bits/c++config.h>
#include <backward/hashtable.h>
#include <bits/concept_check.h>
diff --git a/libstdc++-v3/include/backward/hash_set b/libstdc++-v3/include/backward/hash_set
index 5a2ade78214..1e4f1a9792d 100644
--- a/libstdc++-v3/include/backward/hash_set
+++ b/libstdc++-v3/include/backward/hash_set
@@ -57,7 +57,10 @@
#ifndef _BACKWARD_HASH_SET
#define _BACKWARD_HASH_SET 1
+#ifndef _GLIBCXX_PERMIT_BACKWARD_HASH
#include "backward_warning.h"
+#endif
+
#include <bits/c++config.h>
#include <backward/hashtable.h>
#include <bits/concept_check.h>