summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authornsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-22 11:00:42 +0000
committernsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-22 11:00:42 +0000
commitd637913b093e6321ac73472091f13e1f7fcb6efc (patch)
tree9794a2e25f47b38ce5b3e6e6050ff58eb1ff1167 /gcc/system.h
parent67d05b1bc4798c247603d11f25aa143e8e6e74f0 (diff)
downloadgcc-d637913b093e6321ac73472091f13e1f7fcb6efc.tar.gz
[PATCH 2/2] (header usage fix) include c++ headers in system.h
2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com> * system.h (list, map, set, vector): Include conditionally. * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define. * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define. * ipa-icf.c (INCLUDE_LIST): Define. * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define. * config/sh/sh.c (INCLUDE_VECTOR): Define. * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define. (INCLUDE_LIST, INCLUDE_VECTOR): Define. * cp/logic.cc (INCLUDE_LIST): Define. * fortran/trans-common.c (INCLUDE_MAP): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235362 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index cb545410a15..984f302fbc9 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -220,6 +220,18 @@ extern int errno;
#if defined (INCLUDE_ALGORITHM) || !defined (HAVE_SWAP_IN_UTILITY)
# include <algorithm>
#endif
+#ifdef INCLUDE_LIST
+# include <list>
+#endif
+#ifdef INCLUDE_MAP
+# include <map>
+#endif
+#ifdef INCLUDE_SET
+# include <set>
+#endif
+#ifdef INCLUDE_VECTOR
+# include <vector>
+#endif
# include <cstring>
# include <new>
# include <utility>