Skip to content

Commit

Permalink
* wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
Browse files Browse the repository at this point in the history
	* wctype/Makefile (tests): Add bug-wctypeh.
	* wctype/bug-wctypeh.c: New file.
  • Loading branch information
Ulrich Drepper committed Dec 29, 2008
1 parent 0f2ae55 commit 5703f47
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
[BZ #9694]
* wcsmbs/wchar.h: Move undefs for local __need_* constants to the
very end.
* wctype/wctype.h: Get wint_t definition directly from <stddef.h>.
* wctype/Makefile (tests): Add bug-wctypeh.
* wctype/bug-wctypeh.c: New file.

* nscd/nscd_gethst_r.c (nscd_gethst_r): Don't use nscd if
LOCALDOMAIN is defined.
Expand Down
4 changes: 2 additions & 2 deletions wctype/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
# Copyright (C) 1996, 1997, 1999, 2000, 2008 Free Software Foundation, Inc.
# This file is part of the GNU C Library.

# The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -26,6 +26,6 @@ distribute := wchar-lookup.h
routines := wcfuncs wctype iswctype wctrans towctrans \
wcfuncs_l wctype_l iswctype_l wctrans_l towctrans_l

tests := test_wctype test_wcfuncs
tests := test_wctype test_wcfuncs bug-wctypeh

include ../Rules
10 changes: 10 additions & 0 deletions wctype/bug-wctypeh.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#include <wchar.h>
#include <wctype.h>
#include <stddef.h>
ptrdiff_t i;

int
main (void)
{
return 0;
}
6 changes: 3 additions & 3 deletions wctype/wctype.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1996-2002, 2005, 2007 Free Software Foundation, Inc.
/* Copyright (C) 1996-2002, 2005, 2007, 2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -29,9 +29,9 @@
#ifndef __need_iswxxx
# define _WCTYPE_H 1

/* Get wint_t from <wchar.h>. */
/* Get wint_t from <stddef.h>. */
# define __need_wint_t
# include <wchar.h>
# include <stddef.h>

/* Constant expression of type `wint_t' whose value does not correspond
to any member of the extended character set. */
Expand Down

0 comments on commit 5703f47

Please sign in to comment.