diff options
Diffstat (limited to 'libstdc++-v3/include/tr1/random.tcc')
-rw-r--r-- | libstdc++-v3/include/tr1/random.tcc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libstdc++-v3/include/tr1/random.tcc b/libstdc++-v3/include/tr1/random.tcc index d53737774d8..3d8c4fe1c10 100644 --- a/libstdc++-v3/include/tr1/random.tcc +++ b/libstdc++-v3/include/tr1/random.tcc @@ -31,7 +31,7 @@ #ifndef _GLIBCXX_TR1_RANDOM_TCC #define _GLIBCXX_TR1_RANDOM_TCC 1 -namespace std +namespace std _GLIBCXX_VISIBILITY(default) { namespace tr1 { @@ -40,6 +40,8 @@ namespace tr1 */ namespace __detail { + _GLIBCXX_BEGIN_NAMESPACE_VERSION + // General case for x = (ax + c) mod m -- use Schrage's algorithm to avoid // integer overflow. // @@ -90,8 +92,10 @@ namespace tr1 __calc(_Tp __x) { return __a * __x + __c; } }; + _GLIBCXX_END_NAMESPACE_VERSION } // namespace __detail +_GLIBCXX_BEGIN_NAMESPACE_VERSION template<class _UIntType, _UIntType __a, _UIntType __c, _UIntType __m> const _UIntType @@ -1709,6 +1713,8 @@ namespace tr1 __os.precision(__precision); return __os; } + +_GLIBCXX_END_NAMESPACE_VERSION } } |