# HG changeset patch # User Bruno Haible # Date 1302812981 -7200 # Node ID a1d4fafd50b6f19ff56945df71e0cb3b36786d91 # Parent b59a75c48ef7114875d0c94fe1699daae18ef037 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 --- 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 --- 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. */ +#if !(defined __GLIBC__ && !defined __UCLIBC__) +# include +#endif #ifndef __GLIBC__ -# include # include # include #endif