diff options
author | Hauke Fath <hauke@espresso.rhein-neckar.de> | 2010-04-05 01:33:24 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-04-05 01:39:18 +0200 |
commit | a2c5c0940ec9098277c788906e26d3afe6cf7f51 (patch) | |
tree | 5a5dccb9d54440437dac80848c5cc8aeeb04ecc1 /lib/wchar.in.h | |
parent | 478b8e3ee921a64ab6b7653157279201f5dd78f0 (diff) | |
download | gnulib-a2c5c0940ec9098277c788906e26d3afe6cf7f51.tar.gz |
wchar: Port to NetBSD 1.5.
Diffstat (limited to 'lib/wchar.in.h')
-rw-r--r-- | lib/wchar.in.h | 6 |
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 |