This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH??] libstdc++-v3/config/locale/gnu/c_locale.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]