diff options
author | Roland McGrath <roland@gnu.org> | 1996-05-26 22:09:13 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1996-05-26 22:09:13 +0000 |
commit | 71a40c74716aa19ddb181391c0583f55bb491c2f (patch) | |
tree | f49023812c478b76da868493c280d437614ee43a /wctype | |
parent | 59dd864187ee61b6f0bfd7abc85e2fea4b479cb7 (diff) | |
download | glibc-71a40c74716aa19ddb181391c0583f55bb491c2f.tar.gz |
* time/Makefile (tzcompile): Add missing backslash.
* wctype/wctype.h (__need_wint_t): Define this and include stddef.h.
[! _WINT_T] (wint_t): Conditionalize typedef on this in case pre-2.7.3
stddef.h doesn't define it.
* wcsmbs/wchar.h: Likewise.
* stdlib/strtod.c: Likewise.
* wcsmbs/wcstok.c: Fix argument name typo.
Diffstat (limited to 'wctype')
-rw-r--r-- | wctype/wctype.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/wctype/wctype.h b/wctype/wctype.h index cabbc67b24..87451e5d83 100644 --- a/wctype/wctype.h +++ b/wctype/wctype.h @@ -29,21 +29,18 @@ Boston, MA 02111-1307, USA. */ __BEGIN_DECLS -/* FIXME: should this go into <stddef.h>??? */ -#if 0 +/* We try to get wint_t from <stddef.h>, but not all GCC versions define it + there. So define it ourselves if it remains undefined. */ #define __need_wint_t #include <stddef.h> -#else +#ifndef _WINT_T /* Integral type unchanged by default argument promotions that can hold any value corresponding to members of the extended character set, as well as at least one value that does not correspond to any member of the extended character set. */ -#ifndef __have_wint_t_defined -#define __have_wint_t_defined 1 -/* This is a hack!!! */ +#define _WINT_T typedef unsigned int wint_t; #endif -#endif /* Scalar type that can hold values which represent locale-specific character mappings. */ |