diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-03-27 06:06:35 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-03-27 06:06:35 -0700 |
commit | b9ea2dd05ee1684ca36ce7ee62ac679f391b6a7f (patch) | |
tree | 9c7c08941f0d011b7ded403588683752e1853220 /include | |
parent | a5f3b0f830920ae31e24cad8fe5d877bba556764 (diff) | |
download | glibc-b9ea2dd05ee1684ca36ce7ee62ac679f391b6a7f.tar glibc-b9ea2dd05ee1684ca36ce7ee62ac679f391b6a7f.tar.gz glibc-b9ea2dd05ee1684ca36ce7ee62ac679f391b6a7f.tar.bz2 glibc-b9ea2dd05ee1684ca36ce7ee62ac679f391b6a7f.zip |
Fix handling of __need_mbstate_t and __need_wint_t.
Like the real header, the libc-internal wrapper for wchar.h needs to
undefine the macros so that if the header was already included before
the macros don't stay defined and cause problems later.
Diffstat (limited to 'include')
-rw-r--r-- | include/wchar.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wchar.h b/include/wchar.h index bca847731d..3afe0b6e2e 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -195,3 +195,8 @@ extern size_t __mbsrtowcs_l (wchar_t *dst, const char **src, size_t len, # endif #endif + +/* Undefine all __need_* constants in case we are included to get those + constants but the whole file was already read. */ +#undef __need_mbstate_t +#undef __need_wint_t |