about summary refs log tree commit diff
path: root/wcsmbs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-26 22:09:13 +0000
committerRoland McGrath <roland@gnu.org>1996-05-26 22:09:13 +0000
commit71a40c74716aa19ddb181391c0583f55bb491c2f (patch)
treef49023812c478b76da868493c280d437614ee43a /wcsmbs
parent59dd864187ee61b6f0bfd7abc85e2fea4b479cb7 (diff)
downloadglibc-71a40c74716aa19ddb181391c0583f55bb491c2f.tar.gz
glibc-71a40c74716aa19ddb181391c0583f55bb491c2f.tar.xz
glibc-71a40c74716aa19ddb181391c0583f55bb491c2f.zip
* 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 'wcsmbs')
-rw-r--r--wcsmbs/wchar.h22
-rw-r--r--wcsmbs/wcstok.c2
2 files changed, 14 insertions, 10 deletions
diff --git a/wcsmbs/wchar.h b/wcsmbs/wchar.h
index b54170c3f3..cc821b8a50 100644
--- a/wcsmbs/wchar.h
+++ b/wcsmbs/wchar.h
@@ -34,6 +34,19 @@ __BEGIN_DECLS
 #define __need_NULL
 #include <stddef.h>
 
+
+/* 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.  */
+#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.  */
+#define _WINT_T
+typedef unsigned int wint_t;
+#endif
+
+
 /* Conversion state information.  */
 typedef int mbstate_t; /* FIXME */
 
@@ -44,15 +57,6 @@ typedef int mbstate_t; /* FIXME */
 # define WEOF (0xffffffffu)
 #endif
 
-#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.  */
-#define _WINT_T	1
-typedef unsigned int wint_t;
-#endif
-
 
 /* Copy SRC to DEST.  */
 extern wchar_t *wcscpy __P ((wchar_t *__dest, __const wchar_t *__src));
diff --git a/wcsmbs/wcstok.c b/wcsmbs/wcstok.c
index b6baf311a4..42df61923b 100644
--- a/wcsmbs/wcstok.c
+++ b/wcsmbs/wcstok.c
@@ -24,7 +24,7 @@ Boston, MA 02111-1307, USA.  */
 /* Parse WCS into tokens separated by characters in DELIM.  If WCS is
    NULL, the last string wcstok() was called with is used.  */
 wchar_t *
-wcstok (wcs, delim, ptr)
+wcstok (wcs, delim, save_ptr)
      wchar_t *wcs;
      const wchar_t *delim;
      wchar_t **save_ptr;