Skip to content

Commit

Permalink
* wcsmbs/Makefile: Add rules to build and run tst-wchar-h.
Browse files Browse the repository at this point in the history
	* wcsmbs/tst-wchar-h.c: New file.
  • Loading branch information
Ulrich Drepper committed Jul 24, 2005
1 parent 76c98ee commit c226340
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
2005-07-24 Ulrich Drepper <[email protected]>

* 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 <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion wcsmbs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ routines := wcscat wcschr wcscmp wcscpy wcscspn wcsdup wcslen wcsncat \
wcsmbsload mbsrtowcs_l

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

Expand All @@ -62,6 +62,7 @@ CFLAGS-wcstoull_l.c = $(strtox-CFLAGS)
CFLAGS-wcstod_l.c = $(strtox-CFLAGS)
CFLAGS-wcstold_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-mbrtowc-ENV = LOCPATH=$(common-objpfx)localedata
Expand Down
9 changes: 9 additions & 0 deletions wcsmbs/tst-wchar-h.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <stdlib.h>
#include <wchar.h>

int
main (void)
{
mbstate_t x;
return sizeof (x) - sizeof (mbstate_t);
}

0 comments on commit c226340

Please sign in to comment.