diff options
author | Mark Mitchell <mark@markmitchell.com> | 1998-08-17 12:25:32 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1998-08-17 12:25:32 +0000 |
commit | ef1090573ad7a763ba57b083dade492aea527816 (patch) | |
tree | b080a76b7c33eba2a6f4b4f531afdcb39c6723d1 /libstdc++/stdexcept | |
parent | a782562574c26954eb5b321aea025df13690ccaa (diff) | |
download | gcc-ef1090573ad7a763ba57b083dade492aea527816.zip gcc-ef1090573ad7a763ba57b083dade492aea527816.tar.gz gcc-ef1090573ad7a763ba57b083dade492aea527816.tar.bz2 |
* stdexcept: Put things in the std namespace, if appropriate.
From-SVN: r21788
Diffstat (limited to 'libstdc++/stdexcept')
-rw-r--r-- | libstdc++/stdexcept | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++/stdexcept b/libstdc++/stdexcept index 96be4d2..c0ac87f 100644 --- a/libstdc++/stdexcept +++ b/libstdc++/stdexcept @@ -37,6 +37,10 @@ extern "C++" { +#ifdef __HONOR_STD +namespace std { +#endif + class logic_error : public exception { string _what; public: @@ -88,6 +92,10 @@ public: underflow_error (const string& what_arg): runtime_error (what_arg) { } }; +#ifdef __HONOR_STD +} // namespace std +#endif + } // extern "C++" #endif |