From: Bruno Haible Date: Thu, 14 Apr 2011 20:29:41 +0000 (+0200) Subject: wchar: Ensure that wchar_t gets defined on uClibc. X-Git-Tag: v0.1~2944 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=93dca9da5d488fcf40c38f63d9762a9f54b1a8b0;p=gnulib.git wchar: Ensure that wchar_t gets defined on uClibc. * lib/wchar.in.h: On uClibc, include . Reported by Giuseppe Scrivano . --- diff --git a/ChangeLog b/ChangeLog index 09f68af28..349e5fc77 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-14 Bruno Haible + + wchar: Ensure that wchar_t gets defined on uClibc. + * lib/wchar.in.h: On uClibc, include . + Reported by Giuseppe Scrivano . + 2011-04-13 Bruno Haible safe-write, full-read: Avoid unnecessary compilation units. diff --git a/lib/wchar.in.h b/lib/wchar.in.h index d2bf17d6e..c7f306a9c 100644 --- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -61,9 +61,13 @@ . BSD/OS 4.0.1 has a bug: , and must be included before . + In some builds of uClibc, is nonexistent and wchar_t is defined + by . But avoid namespace pollution on glibc systems. */ -#ifndef __GLIBC__ +#if !(defined __GLIBC__ && !defined __UCLIBC__) # include +#endif +#ifndef __GLIBC__ # include # include #endif