Building the jp2uc code yields:
.../newlib/libc/ctype/jp2uc.c: In function â_jp2ucâ:
.../newlib/libc/ctype/jp2uc.c:156:3: warning: implicit declaration of function
âstrcmpâ [-Wimplicit-function-declaration]
if (!strcmp (__locale_charset (), "JIS"))
^
Add the missing string.h include to fix this.
-mike
2013-12-30 Mike Frysinger <vapier@gentoo.org>
* libc/ctype/jp2uc.c: Include string.h.
--- newlib/libc/ctype/jp2uc.c 2 Jun 2009 09:41:06 -0000 1.6
+++ newlib/libc/ctype/jp2uc.c 31 Dec 2013 04:01:02 -0000
@@ -37,6 +37,7 @@
#ifndef __CYGWIN__
#include <_ansi.h>
+#include <string.h>
#include <wctype.h>
#include "local.h"
#include "jp2uc.h"