diff options
| author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-30 11:34:26 +0000 |
|---|---|---|
| committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-30 11:34:26 +0000 |
| commit | fb2a82e5326d97586778481dae917001025af30e (patch) | |
| tree | fc2910508e52529de793d53be8556aa2f568e4a5 /libstdc++-v3/include/c_std/bits/std_cmath.h | |
| parent | e352e0a873993daf28c9aee7e55413613510ec5e (diff) | |
| download | ppe42-gcc-fb2a82e5326d97586778481dae917001025af30e.tar.gz ppe42-gcc-fb2a82e5326d97586778481dae917001025af30e.zip | |
2001-05-29 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/c_std/bits/std_cstdlib.h:: Move C99 thingies to __gnu_cxx::.
* include/c_std/bits/std_cwchar.h (__gnu_cxx): Likewise.
2001-05-27 Gabriel Dos Reis <gdr@merlin.codesourcery.com>
* include/c_std/bits/std_cmath.h: Move C99 functions in __gnu_cxx::.
* include/c_std/bits/std_cstdlib.h: Same.
* include/c_std/bits/std_cwchar.h: Same.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42707 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/include/c_std/bits/std_cmath.h')
| -rw-r--r-- | libstdc++-v3/include/c_std/bits/std_cmath.h | 75 |
1 files changed, 38 insertions, 37 deletions
diff --git a/libstdc++-v3/include/c_std/bits/std_cmath.h b/libstdc++-v3/include/c_std/bits/std_cmath.h index b6256d8925a..32a79d01431 100644 --- a/libstdc++-v3/include/c_std/bits/std_cmath.h +++ b/libstdc++-v3/include/c_std/bits/std_cmath.h @@ -572,9 +572,9 @@ namespace std #if _GLIBCPP_USE_C99 // These are possible macros imported from C99-land. For strict -// conformance, remove possible C99-injected names from the -// global namespace, and sequester them in the c99 namespace. -namespace c99 +// conformance, remove possible C99-injected names from the global +// namespace, and sequester them in the __gnu_cxx extension namespace. +namespace __gnu_cxx { template<typename _Tp> int @@ -602,32 +602,33 @@ namespace c99 template<typename _Tp> int - __capture_isgreater(_Tp __f1, _Tp __f2) { return isgreater(__f1, __f2); } + __capture_isgreater(_Tp __f1, _Tp __f2) + { return isgreater(__f1, __f2); } - template<typename _Tp> - int - __capture_isgreaterequal(_Tp __f1, _Tp __f2) - { return isgreaterequal(__f1, __f2); } + template<typename _Tp> + int + __capture_isgreaterequal(_Tp __f1, _Tp __f2) + { return isgreaterequal(__f1, __f2); } - template<typename _Tp> - int - __capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); } + template<typename _Tp> + int + __capture_isless(_Tp __f1, _Tp __f2) { return isless(__f1, __f2); } - template<typename _Tp> - int - __capture_islessequal(_Tp __f1, _Tp __f2) - { return islessequal(__f1, __f2); } + template<typename _Tp> + int + __capture_islessequal(_Tp __f1, _Tp __f2) + { return islessequal(__f1, __f2); } - template<typename _Tp> - int - __capture_islessgreater(_Tp __f1, _Tp __f2) - { return islessgreater(__f1, __f2); } + template<typename _Tp> + int + __capture_islessgreater(_Tp __f1, _Tp __f2) + { return islessgreater(__f1, __f2); } - template<typename _Tp> - int - __capture_isunordered(_Tp __f1, _Tp __f2) - { return isunordered(__f1, __f2); } -} // namespace c99 + template<typename _Tp> + int + __capture_isunordered(_Tp __f1, _Tp __f2) + { return isunordered(__f1, __f2); } +} // namespace __gnu_cxx #endif #undef fpclassify @@ -644,7 +645,7 @@ namespace c99 #undef isunordered #if _GLIBCPP_USE_C99 -namespace c99 +namespace __gnu_cxx { template<typename _Tp> int @@ -701,18 +702,18 @@ namespace c99 namespace std { - using c99::fpclassify; - using c99::isfinite; - using c99::isinf; - using c99::isnan; - using c99::isnormal; - using c99::signbit; - using c99::isgreater; - using c99::isgreaterequal; - using c99::isless; - using c99::islessequal; - using c99::islessgreater; - using c99::isunordered; + using __gnu_cxx::fpclassify; + using __gnu_cxx::isfinite; + using __gnu_cxx::isinf; + using __gnu_cxx::isnan; + using __gnu_cxx::isnormal; + using __gnu_cxx::signbit; + using __gnu_cxx::isgreater; + using __gnu_cxx::isgreaterequal; + using __gnu_cxx::isless; + using __gnu_cxx::islessequal; + using __gnu_cxx::islessgreater; + using __gnu_cxx::isunordered; } #endif |

