aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2014-11-11 14:12:39 +0100
committerUros Bizjak <uros@gcc.gnu.org>2014-11-11 14:12:39 +0100
commit9310366b70c4953aff526ec62d0405dc729d5edf (patch)
treed5e79eb5d58db620ac7bc854f753b8808505bdd3 /gcc/system.h
parent568ccfea0f9f6c4a188429faa42c89087503f5a9 (diff)
downloadgcc-9310366b70c4953aff526ec62d0405dc729d5edf.zip
gcc-9310366b70c4953aff526ec62d0405dc729d5edf.tar.gz
gcc-9310366b70c4953aff526ec62d0405dc729d5edf.tar.bz2
system.h: Include algorithm and utility.
* system.h: Include algorithm and utility. * rtl.h: Do not include utility here. * wide-int.h: Ditto. * tree-vect-data-refs.c (swap): Remove template. (vect_prune_runtime_alias_test_list): Use std::swap instead of swap. From-SVN: r217348
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index c05f02d..58f50f1 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -215,7 +215,9 @@ extern int errno;
#endif
#ifdef __cplusplus
+# include <algorithm>
# include <cstring>
+# include <utility>
#endif
/* Some of glibc's string inlines cause warnings. Plus we'd rather