]> Savannah Git Hosting - gnulib.git/commitdiff
limits-h: Make it work with HP-UX cc.
authorBruno Haible <bruno@clisp.org>
Wed, 15 Mar 2017 20:22:00 +0000 (21:22 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Mar 2017 20:22:00 +0000 (21:22 +0100)
* lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
defined.

ChangeLog
lib/limits.in.h

index 3fe86782b0c212b469145e337d4de05a54b01f40..6c3e1b1d1eda4448d52bfb54cdf477e7e1944573 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-03-14  Bruno Haible  <bruno@clisp.org>
+
+       limits-h: Make it work with HP-UX cc.
+       * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
+       defined.
+
 2017-03-14  Bruno Haible  <bruno@clisp.org>
 
        Fix test failures on DragonFlyBSD.
index 7ff33ab12ecab945c1096c1a3d117a1d413dceec..1846704350afc87e919d79782dad6879ae363f28 100644 (file)
 #ifndef _@GUARD_PREFIX@_LIMITS_H
 #define _@GUARD_PREFIX@_LIMITS_H
 
+/* For HP-UX 11.31.  */
+#if defined LONG_LONG_MIN && !defined LLONG_MIN
+# define LLONG_MIN LONG_LONG_MIN
+#endif
+#if defined LONG_LONG_MAX && !defined LLONG_MAX
+# define LLONG_MAX LONG_LONG_MAX
+#endif
+#if defined ULONG_LONG_MAX && !defined ULLONG_MAX
+# define ULLONG_MAX ULONG_LONG_MAX
+#endif
+
 /* The number of usable bits in an unsigned or signed integer type
    with minimum value MIN and maximum value MAX, as an int expression
    suitable in #if.  Cover all known practical hosts.  This