wchar: Port to NetBSD 1.5.
authorHauke Fath <hauke@espresso.rhein-neckar.de>
Sun, 4 Apr 2010 23:33:24 +0000 (01:33 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Apr 2010 23:39:18 +0000 (01:39 +0200)
ChangeLog
lib/wchar.in.h
lib/wctype.in.h

index d62f2da..d2d2721 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
             Bruno Haible  <bruno@clisp.org>
 
+       wchar: Port to NetBSD 1.5.
+       * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
+       * lib/wctype.in.h (WEOF): Likewise.
+
+2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
+            Bruno Haible  <bruno@clisp.org>
+
        Port extended stdio to NetBSD 1.5.
        * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
        (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
index 3f96a85..fb4f105 100644 (file)
 /* The definition of _GL_WARN_ON_USE is copied here.  */
 
 
-/* Define wint_t.  (Also done in wctype.in.h.)  */
+/* Define wint_t and WEOF.  (Also done in wctype.in.h.)  */
 #if !@HAVE_WINT_T@ && !defined wint_t
 # define wint_t int
 # ifndef WEOF
 #  define WEOF -1
 # endif
+#else
+# ifndef WEOF
+#  define WEOF ((wint_t) -1)
+# endif
 #endif
 
 
index 8016203..6782478 100644 (file)
 
 /* The definition of _GL_WARN_ON_USE is copied here.  */
 
-/* Define wint_t.  (Also done in wchar.in.h.)  */
+/* Define wint_t and WEOF.  (Also done in wchar.in.h.)  */
 #if !@HAVE_WINT_T@ && !defined wint_t
 # define wint_t int
 # ifndef WEOF
 #  define WEOF -1
 # endif
+#else
+# ifndef WEOF
+#  define WEOF ((wint_t) -1)
+# endif
 #endif