This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH??] libstdc++-v3/config/locale/gnu/c_locale.h
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Chris Lattner <sabre at nondot dot org>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: 24 Aug 2003 17:59:08 +0200
- Subject: Re: [PATCH??] libstdc++-v3/config/locale/gnu/c_locale.h
- Organization: Integrable Solutions
- References: <Pine.LNX.4.44.0308221027310.9384-100000@nondot.org>
Chris Lattner <sabre@nondot.org> writes:
| This file does not compile due to lack of prototypes for malloc, strlen,
| strcpy, and free. This seems like a really gross solution, but does
| work...
|
| 2003-08-22 Chris Lattner <sabre@nondot.org>
|
| * c_locale.h: Get prototypes for system functions used.
this patch is not OK.
[...]
| +#include <string.h>
| +#include <malloc.h>
<malloc.h> is not a standard header. The function malloc() is defined
in <cstdlib>. Also, the headr for C-string functions should be
<cstring> not <string.h>.
-- Gaby