projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* doc/headers/assert.texi (assert.h): Document assert module use.
[gnulib.git]
/
lib
/
stdint_.h
diff --git
a/lib/stdint_.h
b/lib/stdint_.h
index
098637f
..
4fa5251
100644
(file)
--- a/
lib/stdint_.h
+++ b/
lib/stdint_.h
@@
-179,7
+179,7
@@
#ifdef GL_INT64_T
# define int_least64_t int64_t
#endif
#ifdef GL_INT64_T
# define int_least64_t int64_t
#endif
-#ifdef GL_UIN64_T
+#ifdef GL_UIN
T
64_T
# define uint_least64_t uint64_t
#endif
# define uint_least64_t uint64_t
#endif
@@
-277,7
+277,9
@@
#undef INT64_MIN
#undef INT64_MAX
#ifdef GL_INT64_T
#undef INT64_MIN
#undef INT64_MAX
#ifdef GL_INT64_T
-# define INT64_MIN (~ INT64_MAX)
+/* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0
+ evaluates the latter incorrectly in preprocessor expressions. */
+# define INT64_MIN (- INTMAX_C (1) << 63)
# define INT64_MAX INTMAX_C (9223372036854775807)
#endif
# define INT64_MAX INTMAX_C (9223372036854775807)
#endif
@@
-377,10
+379,11
@@
#undef INTMAX_MIN
#undef INTMAX_MAX
#undef INTMAX_MIN
#undef INTMAX_MAX
-#define INTMAX_MIN (~ INTMAX_MAX)
#ifdef INT64_MAX
#ifdef INT64_MAX
+# define INTMAX_MIN INT64_MIN
# define INTMAX_MAX INT64_MAX
#else
# define INTMAX_MAX INT64_MAX
#else
+# define INTMAX_MIN INT32_MIN
# define INTMAX_MAX INT32_MAX
#endif
# define INTMAX_MAX INT32_MAX
#endif