This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: don't include cstdlib unnecessarily
- From: Mike Stump <mrs at apple dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: libstdc++ at gcc dot gnu dot org, "gcc-patches at gcc dot gnu dot org Patches" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 10 Feb 2005 11:24:45 -0800
- Subject: Re: don't include cstdlib unnecessarily
On Wednesday, February 9, 2005, at 07:02 PM, Gabriel Dos Reis wrote:
Yes. Thanks.
Additional testing shows that the below was also required... Curious
enough, other files so the same type of problem, but since I've not
seen a problem with them, I'll leave them alone.
Doing diffs in .:
--- ./del_op.cc.~1~ 2005-02-10 11:14:58.000000000 -0800
+++ ./del_op.cc 2005-02-10 11:17:57.000000000 -0800
@@ -29,10 +29,10 @@
// the GNU General Public License.
#include "new"
+#include <bits/c++config.h>
#if _GLIBCXX_HOSTED
#include <cstdlib>
#endif
-#include <bits/c++config.h>
#if _GLIBCXX_HOSTED
using std::free;
--------------