Mercurial > hg > octave-lojdl > gnulib-hg
changeset 14581:a1d4fafd50b6
wchar: Ensure that wchar_t gets defined on uClibc.
* lib/wchar.in.h: On uClibc, include <stddef.h>.
Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Thu, 14 Apr 2011 22:29:41 +0200 |
parents | b59a75c48ef7 |
children | 3a41e32d28ab |
files | ChangeLog lib/wchar.in.h |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-14 Bruno Haible <bruno@clisp.org> + + wchar: Ensure that wchar_t gets defined on uClibc. + * lib/wchar.in.h: On uClibc, include <stddef.h>. + Reported by Giuseppe Scrivano <gscrivano@gnu.org>. + 2011-04-13 Bruno Haible <bruno@clisp.org> safe-write, full-read: Avoid unnecessary compilation units.
--- a/lib/wchar.in.h +++ b/lib/wchar.in.h @@ -61,9 +61,13 @@ <wchar.h>. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included before <wchar.h>. + In some builds of uClibc, <wchar.h> is nonexistent and wchar_t is defined + by <stddef.h>. But avoid namespace pollution on glibc systems. */ +#if !(defined __GLIBC__ && !defined __UCLIBC__) +# include <stddef.h> +#endif #ifndef __GLIBC__ -# include <stddef.h> # include <stdio.h> # include <time.h> #endif