wchar.h: supply WEOF on Irix 5.3
authorEric Blake <ebb9@byu.net>
Mon, 29 Dec 2008 16:09:58 +0000 (09:09 -0700)
committerEric Blake <ebb9@byu.net>
Mon, 29 Dec 2008 16:37:33 +0000 (09:37 -0700)
* lib/wchar.in.h (wint_t): Also supply WEOF.
* lib/wctype.in.h (wint_t): Likewise.
* doc/posix-headers/wchar.texi (wchar.h): Document the bug.
* doc/posix-headers/wctype.texi (wctype.h): Likewise.
Reported by Tom G. Christensen.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
doc/posix-headers/wchar.texi
doc/posix-headers/wctype.texi
lib/wchar.in.h
lib/wctype.in.h

index 4936022..8bd92e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2008-12-29  Eric Blake  <ebb9@byu.net>
+
+       wchar.h: supply WEOF on Irix 5.3
+       * lib/wchar.in.h (wint_t): Also supply WEOF.
+       * lib/wctype.in.h (wint_t): Likewise.
+       * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
+       * doc/posix-headers/wctype.texi (wctype.h): Likewise.
+       Reported by Tom G. Christensen.
+
 2008-12-26  Bruno Haible  <bruno@clisp.org>
 
        * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
        * doc/glibc-functions/wmempcpy.texi: Likewise.
 
 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
-            Eric Blake  <ebb9@byu.net>
-            Paolo Bonzini  <bonzini@gnu.org>
-            Bruno Haible  <bruno@clisp.org>
+           Eric Blake  <ebb9@byu.net>
+           Paolo Bonzini  <bonzini@gnu.org>
+           Bruno Haible  <bruno@clisp.org>
 
        Make c-stack work on Haiku.
        * lib/c-stack.c (SA_ONSTACK): Define fallback.
index 5e121e8..bdd8232 100644 (file)
@@ -14,7 +14,7 @@ Linux uClibc built without wide character support.
 This header file is not self-contained on some platforms:
 OSF/1 with Desktop Toolkit C, BSD/OS 4.0.1.
 @item
-The type @code{wint_t} is missing on some platforms:
+The type @code{wint_t} and macro @code{WEOF} are missing on some platforms:
 IRIX 5.3.
 @end itemize
 
index ff56cba..d3438e4 100644 (file)
@@ -14,7 +14,7 @@ HP-UX 11.00, BeOS.
 This header file is not self-contained on some platforms:
 Solaris 2.5, OSF/1 with Desktop Toolkit C, BSD/OS 4.0.1.
 @item
-The type @code{wint_t} is missing on some platforms:
+The type @code{wint_t} and macro @code{WEOF} are missing on some platforms:
 IRIX 5.3.
 @item
 The functions @code{isw*} are missing on some platforms:
index 1250d3b..74e5f24 100644 (file)
@@ -68,6 +68,9 @@ extern "C" {
 /* Define wint_t.  (Also done in wctype.in.h.)  */
 #if !@HAVE_WINT_T@ && !defined wint_t
 # define wint_t int
+# ifndef WEOF
+#  define WEOF -1
+# endif
 #endif
 
 
index 8b33d71..bcd0151 100644 (file)
@@ -57,6 +57,9 @@
 /* Define wint_t.  (Also done in wchar.in.h.)  */
 #if !@HAVE_WINT_T@ && !defined wint_t
 # define wint_t int
+# ifndef WEOF
+#  define WEOF -1
+# endif
 #endif
 
 /* FreeBSD 4.4 to 4.11 has <wctype.h> but lacks the functions.