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 | |
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
-rw-r--r-- | libstdc++/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++/stdexcept | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index c4ccec7..c9570fe 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,7 @@ +1998-08-17 Mark Mitchell <mark@markmitchell.com> + + * stdexcept: Put things in the std namespace, if appropriate. + 1998-07-12 Jason Merrill <jason@yorick.cygnus.com> * Makefile.in (VERSION): Bump to 2.9.0. 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 |