summaryrefslogtreecommitdiff
path: root/lib/wchar.in.h
diff options
context:
space:
mode:
authorHauke Fath <hauke@espresso.rhein-neckar.de>2010-04-05 01:33:24 +0200
committerBruno Haible <bruno@clisp.org>2010-04-05 01:39:18 +0200
commita2c5c0940ec9098277c788906e26d3afe6cf7f51 (patch)
tree5a5dccb9d54440437dac80848c5cc8aeeb04ecc1 /lib/wchar.in.h
parent478b8e3ee921a64ab6b7653157279201f5dd78f0 (diff)
downloadgnulib-a2c5c0940ec9098277c788906e26d3afe6cf7f51.tar.gz
wchar: Port to NetBSD 1.5.
Diffstat (limited to 'lib/wchar.in.h')
-rw-r--r--lib/wchar.in.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/wchar.in.h b/lib/wchar.in.h
index 3f96a85489..fb4f1058dc 100644
--- a/lib/wchar.in.h
+++ b/lib/wchar.in.h
@@ -82,12 +82,16 @@
/* 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