mirror of git://sourceware.org/git/glibc.git
Fix up wchar.h for XPG7.
This commit is contained in:
parent
37c8e46632
commit
e531ede5af
|
@ -1,5 +1,9 @@
|
||||||
2010-01-11 Ulrich Drepper <drepper@redhat.com>
|
2010-01-11 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* conform/data/wchar.h-data: Fix up XPG7 tests.
|
||||||
|
|
||||||
|
* include/features.h: Fix __USE_ISOC95 handling.
|
||||||
|
|
||||||
* conform/data/wordexp.h-data: Fix typo in last change.
|
* conform/data/wordexp.h-data: Fix typo in last change.
|
||||||
|
|
||||||
* conform/data/unistd.h-data: Fix up older POSIX tests.
|
* conform/data/unistd.h-data: Fix up older POSIX tests.
|
||||||
|
|
|
@ -53,12 +53,12 @@ function wint_t towlower (wint_t)
|
||||||
function wint_t towupper (wint_t)
|
function wint_t towupper (wint_t)
|
||||||
#endif
|
#endif
|
||||||
function wint_t ungetwc (wint_t, FILE*)
|
function wint_t ungetwc (wint_t, FILE*)
|
||||||
function int vfwprintf (FILE*, const wchar_t*, va_list)
|
function int vfwprintf (FILE*, const wchar_t*, __gnuc_va_list)
|
||||||
function int vfwscanf (FILE*, const wchar_t*, va_list)
|
function int vfwscanf (FILE*, const wchar_t*, __gnuc_va_list)
|
||||||
function int vwprintf (const wchar_t*, va_list)
|
function int vwprintf (const wchar_t*, __gnuc_va_list)
|
||||||
function int vwscanf (const wchar_t*, va_list)
|
function int vwscanf (const wchar_t*, __gnuc_va_list)
|
||||||
function int vswprintf (wchar_t*, size_t, const wchar_t*, va_list)
|
function int vswprintf (wchar_t*, size_t, const wchar_t*, __gnuc_va_list)
|
||||||
function int vswscanf (const wchar_t*, const wchar_t*, va_list)
|
function int vswscanf (const wchar_t*, const wchar_t*, __gnuc_va_list)
|
||||||
#if defined XOPEN2K8 || defined POSIX2008
|
#if defined XOPEN2K8 || defined POSIX2008
|
||||||
function {wchar_t*} wcpcpy (wchar_t*, const wchar_t*)
|
function {wchar_t*} wcpcpy (wchar_t*, const wchar_t*)
|
||||||
function {wchar_t*} wcpncpy (wchar_t*, const wchar_t*, size_t)
|
function {wchar_t*} wcpncpy (wchar_t*, const wchar_t*, size_t)
|
||||||
|
@ -102,7 +102,9 @@ function double wcstod (const wchar_t*, wchar_t**)
|
||||||
function {wchar_t*} wcstok (wchar_t*, const wchar_t*, wchar_t**)
|
function {wchar_t*} wcstok (wchar_t*, const wchar_t*, wchar_t**)
|
||||||
function {long int} wcstol (const wchar_t*, wchar_t**, int)
|
function {long int} wcstol (const wchar_t*, wchar_t**, int)
|
||||||
function {unsigned long int} wcstoul (const wchar_t*, wchar_t**, int)
|
function {unsigned long int} wcstoul (const wchar_t*, wchar_t**, int)
|
||||||
|
#if defined UNIX98 || defined XOPEN2K
|
||||||
function {wchar_t*} wcswcs (const wchar_t*, const wchar_t*)
|
function {wchar_t*} wcswcs (const wchar_t*, const wchar_t*)
|
||||||
|
#endif
|
||||||
#if !defined ISO && !defined POSIX && !defined POSIX2008
|
#if !defined ISO && !defined POSIX && !defined POSIX2008
|
||||||
function int wcswidth (const wchar_t*, size_t)
|
function int wcswidth (const wchar_t*, size_t)
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -153,6 +153,8 @@
|
||||||
|
|
||||||
/* If _GNU_SOURCE was defined by the user, turn on all the other features. */
|
/* If _GNU_SOURCE was defined by the user, turn on all the other features. */
|
||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
|
# undef _ISOC95_SOURCE
|
||||||
|
# define _ISOC95_SOURCE 1
|
||||||
# undef _ISOC99_SOURCE
|
# undef _ISOC99_SOURCE
|
||||||
# define _ISOC99_SOURCE 1
|
# define _ISOC99_SOURCE 1
|
||||||
# undef _POSIX_SOURCE
|
# undef _POSIX_SOURCE
|
||||||
|
@ -233,6 +235,8 @@
|
||||||
|
|
||||||
#if (_POSIX_C_SOURCE - 0) >= 200112L
|
#if (_POSIX_C_SOURCE - 0) >= 200112L
|
||||||
# define __USE_XOPEN2K 1
|
# define __USE_XOPEN2K 1
|
||||||
|
# undef __USE_ISOC95
|
||||||
|
# define __USE_ISOC95 1
|
||||||
# undef __USE_ISOC99
|
# undef __USE_ISOC99
|
||||||
# define __USE_ISOC99 1
|
# define __USE_ISOC99 1
|
||||||
#endif
|
#endif
|
||||||
|
@ -257,6 +261,8 @@
|
||||||
# endif
|
# endif
|
||||||
# define __USE_XOPEN2K 1
|
# define __USE_XOPEN2K 1
|
||||||
# define __USE_XOPEN2KXSI 1
|
# define __USE_XOPEN2KXSI 1
|
||||||
|
# undef __USE_ISOC95
|
||||||
|
# define __USE_ISOC95 1
|
||||||
# undef __USE_ISOC99
|
# undef __USE_ISOC99
|
||||||
# define __USE_ISOC99 1
|
# define __USE_ISOC99 1
|
||||||
# endif
|
# endif
|
||||||
|
|
Loading…
Reference in New Issue