projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
[gnulib.git]
/
lib
/
wctype.in.h
diff --git
a/lib/wctype.in.h
b/lib/wctype.in.h
index
8016203
..
6782478
100644
(file)
--- a/
lib/wctype.in.h
+++ b/
lib/wctype.in.h
@@
-58,12
+58,16
@@
/* The definition of _GL_WARN_ON_USE is copied here. */
/* 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
#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
#endif