don't include cstdlib unnecessarily

Mike Stump mrs@apple.com
Thu Feb 10 19:24:00 GMT 2005


We don't need cstdlib when !_GLIBCXX_HOSTED as we define free just 
below...

Ok?

Doing diffs in libstdc++-v3:
--- libstdc++-v3/ChangeLog.~1.2889.~    2005-02-08 17:26:25.000000000 
-0800
+++ libstdc++-v3/ChangeLog      2005-02-09 18:26:38.000000000 -0800
@@ -1,3 +1,7 @@
+2005-02-09  Mike Stump  <mrs@apple.com>
+
+       * libsupc++/del_op.cc: Don't include cstdlib when 
!_GLIBCXX_HOSTED.
+
2005-02-08  Mark Mitchell  <mark@codesourcery.com>

         * config/linker-map.gnu (GLIBCXX_3.4): Add _ZNSdC* and _ZNSdD*.
--- libstdc++-v3/libsupc++/del_op.cc.~1~        2004-11-12 
15:32:24.000000000 -0800
+++ libstdc++-v3/libsupc++/del_op.cc    2005-02-09 18:25:52.000000000 
-0800
@@ -29,7 +29,9 @@
// the GNU General Public License.

#include "new"
+#if _GLIBCXX_HOSTED
#include <cstdlib>
+#endif
#include <bits/c++config.h>

#if _GLIBCXX_HOSTED
--------------



More information about the Libstdc++ mailing list