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

Jonathan Lennox lennox@cs.columbia.edu
Fri Aug 22 17:18:00 GMT 2003


Chris Lattner writes:
> --- c_locale.h  23 Jan 2003 18:56:00 -0000      1.6
> +++ c_locale.h  22 Aug 2003 15:15:04 -0000
> @@ -42,6 +42,8 @@
> +#include <string.h>
> +#include <malloc.h>

On FreeBSD, malloc.h is:

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: malloc.h
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20030822/211f0d31/attachment.h>
-------------- next part --------------

It's certainly better to use <stdlib.h> for malloc() and free() prototypes,
if it's available.  (Does libstdc++ support any platforms where it isn't?)

-- 
Jonathan Lennox
lennox@cs.columbia.edu


More information about the Libstdc++ mailing list