This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Re: [patch] ctype: fix missing include for jp2uc


Patch checked in.  Thanks.

-- Jeff J.

On 12/30/2013 11:03 PM, Mike Frysinger wrote:
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"


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