From: Mark Mitchell Date: Mon, 17 Aug 1998 12:25:32 +0000 (+0000) Subject: * stdexcept: Put things in the std namespace, if appropriate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef1090573ad7a763ba57b083dade492aea527816;p=gcc.git * stdexcept: Put things in the std namespace, if appropriate. From-SVN: r21788 --- diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog index c4ccec7d9a0..c9570fefbcf 100644 --- a/libstdc++/ChangeLog +++ b/libstdc++/ChangeLog @@ -1,3 +1,7 @@ +1998-08-17 Mark Mitchell + + * stdexcept: Put things in the std namespace, if appropriate. + 1998-07-12 Jason Merrill * Makefile.in (VERSION): Bump to 2.9.0. diff --git a/libstdc++/stdexcept b/libstdc++/stdexcept index 96be4d283b3..c0ac87fbf00 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