This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make UINT64_C()/INT64_C() available anytime HAS_QUAD is defined
authorTony Cook <tony@develop-help.com>
Thu, 29 May 2014 04:39:26 +0000 (14:39 +1000)
committerTony Cook <tony@develop-help.com>
Thu, 29 May 2014 04:39:26 +0000 (14:39 +1000)
Prevent the failure for 32-bit builds on C89 compilers introduced in
f4e3fd268af3.

handy.h

diff --git a/handy.h b/handy.h
index 8a7bf46..996f6b4 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -196,7 +196,7 @@ typedef U64TYPE U64;
 /* INT64_C/UINT64_C are C99 from <stdint.h> (so they will not be
  * available in strict C89 mode), but they are nice, so let's define
  * them if necessary. */
-#if defined(HAS_QUAD) && defined(USE_64_BIT_INT)
+#if defined(HAS_QUAD)
 #  undef PeRl_INT64_C
 #  undef PeRl_UINT64_C
 /* Prefer the native integer types (int and long) over long long