summaryrefslogtreecommitdiff
path: root/lib/inttypes.in.h
diff options
context:
space:
mode:
authorMichael Albinus <michael.albinus@gmx.de>2019-10-25 16:52:14 +0200
committerMichael Albinus <michael.albinus@gmx.de>2019-10-25 16:52:14 +0200
commit084007a5947980f3b61f52496d89560f9aa5bbf1 (patch)
treed3b30e207cae45deb3db1b490c63b2e988c12b6a /lib/inttypes.in.h
parent4bcf3a5fdc2395244981a9a0877f1b0fb4224790 (diff)
parentd56e84409d49641b9acd78346dfe0c271825407e (diff)
downloademacs-084007a5947980f3b61f52496d89560f9aa5bbf1.tar.gz
emacs-084007a5947980f3b61f52496d89560f9aa5bbf1.tar.bz2
emacs-084007a5947980f3b61f52496d89560f9aa5bbf1.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'lib/inttypes.in.h')
-rw-r--r--lib/inttypes.in.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/inttypes.in.h b/lib/inttypes.in.h
index 31e40c51a68..49bcbc168f7 100644
--- a/lib/inttypes.in.h
+++ b/lib/inttypes.in.h
@@ -49,15 +49,15 @@
#ifndef __GLIBC__
# include <stdint.h>
#endif
-/* Get CHAR_BIT. */
+/* Get CHAR_BIT, INT_MAX, LONG_MAX, etc. */
#include <limits.h>
/* On mingw, __USE_MINGW_ANSI_STDIO only works if <stdio.h> is also included */
#if defined _WIN32 && ! defined __CYGWIN__
# include <stdio.h>
#endif
-#if !(INT_MIN == INT32_MIN && INT_MAX == INT32_MAX)
-# error "This file assumes that 'int' has exactly 32 bits. Please report your platform and compiler to <bug-gnulib@gnu.org>."
+#if !(INT_MAX == 0x7fffffff && INT_MIN + INT_MAX == -1)
+# error "This file assumes that 'int' is 32-bit two's complement. Please report your platform and compiler to <bug-gnulib@gnu.org>."
#endif
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */