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]

[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/


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