Simple local.h patch

Howland Craig D (Craig) howland@LGSInnovations.com
Sun Jun 14 13:19:00 GMT 2009


Attached is a simple patch to avoid prototype warnings.
 
Note that the same prototype is in 2 different files.  I did not correct
that in this patch, but a good question is how to.  __locale_charset()
is defined in libc/locale/locale.c.  Both of these prototypes are in
different directories.  It would be the most work, but it seems like
the best approach would be to create a local.h in locale that could
be included in the ctype and stdlib local.h files.  Thoughts?

Craig
 
	* libc/ctype/local.h (__locale_charset):  add arguments to
prototype
	* libc/stdlib/local.h (__locale_charset):  ditto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local.h.patch
Type: application/octet-stream
Size: 1019 bytes
Desc: local.h.patch
URL: <http://sourceware.org/pipermail/newlib/attachments/20090614/b1929b4d/attachment.obj>


More information about the Newlib mailing list