This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
I64/U64 should be defined regardless of PERL_CORE.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 28 Jul 2015 12:43:51 +0000 (08:43 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 28 Jul 2015 23:37:35 +0000 (19:37 -0400)
Only HAS_QUAD matters.

This is old code, originally by yours truly (6b8eaf93).  I think the
PERL_CORE was to protect the inclusion on <inttypes.h>, but that was
not a very good reason or a method even back then.

handy.h

diff --git a/handy.h b/handy.h
index 2f0c50c..e0d096a 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -173,12 +173,11 @@ typedef I16TYPE I16;
 typedef U16TYPE U16;
 typedef I32TYPE I32;
 typedef U32TYPE U32;
-#ifdef PERL_CORE
-#   ifdef HAS_QUAD
+
+#ifdef HAS_QUAD
 typedef I64TYPE I64;
 typedef U64TYPE U64;
-#   endif
-#endif /* PERL_CORE */
+#endif
 
 /* 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