summaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-31 12:36:37 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2013-07-31 12:36:37 +0000
commit7fac97ea1a7c81c46f593004b5eff34ab9573170 (patch)
tree956e4d9fce52a9e7dbd7a481835f12960b8a5551 /libstdc++-v3/src
parentdee86a54d515b82d0f2da5d61fdfb320d8a2d337 (diff)
downloadgcc-7fac97ea1a7c81c46f593004b5eff34ab9573170.tar.gz
2013-07-31 Paolo Carlini <paolo.carlini@oracle.com>
* src/c++11/functexcept.cc: Do not include the whole <regex>. * src/c++11/regex.cc: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201369 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/c++11/functexcept.cc2
-rw-r--r--libstdc++-v3/src/c++11/regex.cc3
2 files changed, 3 insertions, 2 deletions
diff --git a/libstdc++-v3/src/c++11/functexcept.cc b/libstdc++-v3/src/c++11/functexcept.cc
index b74be7dce00..b0c1804ae04 100644
--- a/libstdc++-v3/src/c++11/functexcept.cc
+++ b/libstdc++-v3/src/c++11/functexcept.cc
@@ -30,7 +30,7 @@
#include <system_error>
#include <future>
#include <functional>
-#include <regex>
+#include <bits/regex_error.h>
#ifdef _GLIBCXX_USE_NLS
# include <libintl.h>
diff --git a/libstdc++-v3/src/c++11/regex.cc b/libstdc++-v3/src/c++11/regex.cc
index b18afe2081a..bf863009041 100644
--- a/libstdc++-v3/src/c++11/regex.cc
+++ b/libstdc++-v3/src/c++11/regex.cc
@@ -22,7 +22,8 @@
// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
// <http://www.gnu.org/licenses/>.
-#include <regex>
+#include <stdexcept>
+#include <bits/regex_error.h>
namespace std _GLIBCXX_VISIBILITY(default)
{