aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/src
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/src')
-rw-r--r--libstdc++-v3/src/atomic.cc7
-rw-r--r--libstdc++-v3/src/chrono.cc7
-rw-r--r--libstdc++-v3/src/condition_variable.cc7
-rw-r--r--libstdc++-v3/src/future.cc7
-rw-r--r--libstdc++-v3/src/mutex.cc7
-rw-r--r--libstdc++-v3/src/thread.cc7
6 files changed, 24 insertions, 18 deletions
diff --git a/libstdc++-v3/src/atomic.cc b/libstdc++-v3/src/atomic.cc
index 08d4d03ac8c..822e022b7e5 100644
--- a/libstdc++-v3/src/atomic.cc
+++ b/libstdc++-v3/src/atomic.cc
@@ -49,8 +49,8 @@ namespace
};
} // anonymous namespace
-namespace std
-{
+_GLIBCXX_BEGIN_NAMESPACE(std)
+
namespace __atomic0
{
bool
@@ -115,7 +115,8 @@ namespace std
_GLIBCXX_END_EXTERN_C
} // namespace __atomic0
-} // namespace std
+
+_GLIBCXX_END_NAMESPACE
// XXX GLIBCXX_ABI Deprecated
diff --git a/libstdc++-v3/src/chrono.cc b/libstdc++-v3/src/chrono.cc
index 6d7a64d0080..699a10a7253 100644
--- a/libstdc++-v3/src/chrono.cc
+++ b/libstdc++-v3/src/chrono.cc
@@ -33,8 +33,8 @@
#include <sys/time.h>
#endif
-namespace std
-{
+_GLIBCXX_BEGIN_NAMESPACE(std)
+
namespace chrono
{
const bool system_clock::is_monotonic;
@@ -74,6 +74,7 @@ namespace std
}
#endif
}
-}
+
+_GLIBCXX_END_NAMESPACE
#endif // _GLIBCXX_USE_C99_STDINT_TR1
diff --git a/libstdc++-v3/src/condition_variable.cc b/libstdc++-v3/src/condition_variable.cc
index d3f29f657f4..e7adb5251be 100644
--- a/libstdc++-v3/src/condition_variable.cc
+++ b/libstdc++-v3/src/condition_variable.cc
@@ -26,8 +26,8 @@
#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
-namespace std
-{
+_GLIBCXX_BEGIN_NAMESPACE(std)
+
condition_variable::condition_variable() throw ()
{
#ifdef __GTHREAD_COND_INIT
@@ -84,6 +84,7 @@ namespace std
condition_variable_any::~condition_variable_any() throw ()
{ }
-}
+
+_GLIBCXX_END_NAMESPACE
#endif // _GLIBCXX_HAS_GTHREADS && _GLIBCXX_USE_C99_STDINT_TR1
diff --git a/libstdc++-v3/src/future.cc b/libstdc++-v3/src/future.cc
index 1c9151972af..ed3088d87d6 100644
--- a/libstdc++-v3/src/future.cc
+++ b/libstdc++-v3/src/future.cc
@@ -64,8 +64,8 @@ namespace
}
}
-namespace std
-{
+_GLIBCXX_BEGIN_NAMESPACE(std)
+
const error_category& future_category()
{ return __future_category_instance(); }
@@ -73,4 +73,5 @@ namespace std
const char*
future_error::what() const throw() { return _M_code.message().c_str(); }
-}
+
+_GLIBCXX_END_NAMESPACE
diff --git a/libstdc++-v3/src/mutex.cc b/libstdc++-v3/src/mutex.cc
index 2e9124d3d5f..e6eb6d28a72 100644
--- a/libstdc++-v3/src/mutex.cc
+++ b/libstdc++-v3/src/mutex.cc
@@ -37,8 +37,8 @@ namespace
}
#endif
-namespace std
-{
+_GLIBCXX_BEGIN_NAMESPACE(std)
+
#ifdef _GLIBCXX_HAVE_TLS
__thread void* __once_callable;
__thread void (*__once_call)();
@@ -88,7 +88,8 @@ namespace std
__once_call();
}
}
-}
+
+_GLIBCXX_END_NAMESPACE
// XXX GLIBCXX_ABI Deprecated
// gcc-4.6.0
diff --git a/libstdc++-v3/src/thread.cc b/libstdc++-v3/src/thread.cc
index 2ea6a490735..acc6c038531 100644
--- a/libstdc++-v3/src/thread.cc
+++ b/libstdc++-v3/src/thread.cc
@@ -28,8 +28,8 @@
#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
-namespace std
-{
+_GLIBCXX_BEGIN_NAMESPACE(std)
+
namespace
{
extern "C" void*
@@ -95,6 +95,7 @@ namespace std
__throw_system_error(__e);
}
}
-}
+
+_GLIBCXX_END_NAMESPACE
#endif // _GLIBCXX_HAS_GTHREADS && _GLIBCXX_USE_C99_STDINT_TR1