[PATCH??] libstdc++-v3/config/locale/gnu/c_locale.h
Gabriel Dos Reis
gdr@integrable-solutions.net
Sun Aug 24 15:59:00 GMT 2003
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
More information about the Libstdc++
mailing list