From 93dca9da5d488fcf40c38f63d9762a9f54b1a8b0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 14 Apr 2011 22:29:41 +0200 Subject: [PATCH] wchar: Ensure that wchar_t gets defined on uClibc. * lib/wchar.in.h: On uClibc, include . Reported by Giuseppe Scrivano . --- ChangeLog | 6 ++++++ lib/wchar.in.h | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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 -- 2.11.0