mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
* wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
* wcsmbs/tst-wchar-h.c: New file.
This commit is contained in:
parent
76c98ee22b
commit
c226340858
@ -1,6 +1,8 @@
|
|||||||
2005-07-24 Ulrich Drepper <drepper@redhat.com>
|
2005-07-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* wcsmbs/bits/wchar2.h: Use __FILE not FILE.
|
* wcsmbs/bits/wchar2.h: Use __FILE not FILE.
|
||||||
|
* wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
|
||||||
|
* wcsmbs/tst-wchar-h.c: New file.
|
||||||
|
|
||||||
2005-07-22 Ulrich Drepper <drepper@redhat.com>
|
2005-07-22 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
|
|||||||
wcsmbsload mbsrtowcs_l
|
wcsmbsload mbsrtowcs_l
|
||||||
|
|
||||||
tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
|
tests := tst-wcstof wcsmbs-tst1 tst-wcsnlen tst-btowc tst-mbrtowc \
|
||||||
tst-wcrtomb tst-wcpncpy tst-mbsrtowcs
|
tst-wcrtomb tst-wcpncpy tst-mbsrtowcs tst-wchar-h
|
||||||
|
|
||||||
include ../Rules
|
include ../Rules
|
||||||
|
|
||||||
@ -62,6 +62,7 @@ CFLAGS-wcstoull_l.c = $(strtox-CFLAGS)
|
|||||||
CFLAGS-wcstod_l.c = $(strtox-CFLAGS)
|
CFLAGS-wcstod_l.c = $(strtox-CFLAGS)
|
||||||
CFLAGS-wcstold_l.c = $(strtox-CFLAGS)
|
CFLAGS-wcstold_l.c = $(strtox-CFLAGS)
|
||||||
CFLAGS-wcstof_l.c = $(strtox-CFLAGS)
|
CFLAGS-wcstof_l.c = $(strtox-CFLAGS)
|
||||||
|
CFLAGS-tst-wchar-h.c = -D_FORTIFY_SOURCE=2
|
||||||
|
|
||||||
tst-btowc-ENV = LOCPATH=$(common-objpfx)localedata
|
tst-btowc-ENV = LOCPATH=$(common-objpfx)localedata
|
||||||
tst-mbrtowc-ENV = LOCPATH=$(common-objpfx)localedata
|
tst-mbrtowc-ENV = LOCPATH=$(common-objpfx)localedata
|
||||||
|
9
wcsmbs/tst-wchar-h.c
Normal file
9
wcsmbs/tst-wchar-h.c
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#include <stdlib.h>
|
||||||
|
#include <wchar.h>
|
||||||
|
|
||||||
|
int
|
||||||
|
main (void)
|
||||||
|
{
|
||||||
|
mbstate_t x;
|
||||||
|
return sizeof (x) - sizeof (mbstate_t);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user