summaryrefslogtreecommitdiff
path: root/lib/stdint.in.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-01-01 01:32:27 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-01-01 01:32:56 -0800
commit5a59e28dec039453aaad27fd0919bb93ed517079 (patch)
treeaea1913198992523e05fc1b52c9930df9de052cb /lib/stdint.in.h
parentbcf244ef9be0fe61f4b9a48d3412b2c8a9f1edb9 (diff)
downloademacs-5a59e28dec039453aaad27fd0919bb93ed517079.tar.gz
Merge from gnulib
This incorporates: 2016-12-19 stdint: Fix WINT_MAX to match wint_t on mingw 2016-12-18 getopt: Fix link error for users of getopt() in <unistd.h> 2016-12-17 getlogin: Port to newer mingw 2016-12-17 stdint: Fix WINT_MAX to match wint_t on MSVC 2016-12-17 Avoid redefinition errors on MSVC * lib/getopt.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/unistd.in.h: * m4/stdint.m4, m4/unistd_h.m4: Copy from gnulib. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. Plus, this commit updates the indenting on copyright notices to match that of gnulib.
Diffstat (limited to 'lib/stdint.in.h')
-rw-r--r--lib/stdint.in.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/stdint.in.h b/lib/stdint.in.h
index 90c8a79a561..d899c1e034e 100644
--- a/lib/stdint.in.h
+++ b/lib/stdint.in.h
@@ -83,6 +83,15 @@
LONG_MIN, LONG_MAX, ULONG_MAX, _GL_INTEGER_WIDTH. */
#include <limits.h>
+/* Override WINT_MIN and WINT_MAX if gnulib's <wchar.h> or <wctype.h> overrides
+ wint_t. */
+#if @GNULIB_OVERRIDES_WINT_T@
+# undef WINT_MIN
+# undef WINT_MAX
+# define WINT_MIN 0x0U
+# define WINT_MAX 0xffffffffU
+#endif
+
#if ! @HAVE_C99_STDINT_H@
/* <sys/types.h> defines some of the stdint.h types as well, on glibc,