This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH??] libstdc++-v3/config/locale/gnu/c_locale.h
- From: Chris Lattner <sabre at nondot dot org>
- To: libstdc++ at gcc dot gnu dot org
- Date: Fri, 22 Aug 2003 10:30:12 -0500 (CDT)
- Subject: [PATCH??] libstdc++-v3/config/locale/gnu/c_locale.h
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.
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/config/locale/gnu/c_locale.h,v
retrieving revision 1.6
diff -u -r1.6 c_locale.h
--- 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 <langinfo.h> // For codecvt
#include <iconv.h> // For codecvt using iconv, iconv_t
#include <libintl.h> // For messages
+#include <string.h>
+#include <malloc.h>
#define _GLIBCPP_C_LOCALE_GNU 1
-Chris
--
http://llvm.cs.uiuc.edu/
http://www.nondot.org/~sabre/Projects/