summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-15 19:17:06 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-15 19:17:06 +0000
commit28e5dec85047e189010079efa89eed07bc9eddc8 (patch)
treedd941df355c40cba395e514551ea847e8d07edfd /perl.h
parentc11ecd62a73b5b39df29fd460e1c4451c6e0e8af (diff)
downloadperl-28e5dec85047e189010079efa89eed07bc9eddc8.tar.gz
Return of the IVUV-preservation, now seems to be happy even
in Digital UNIX (the broken strtoul brokenness detection seems to have been the fly in the ointment). p4raw-id: //depot/perl@8138
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 8313c077a7..cccf728439 100644
--- a/perl.h
+++ b/perl.h
@@ -1084,6 +1084,11 @@ typedef UVTYPE UV;
#define IV_DIG (BIT_DIGITS(IVSIZE * 8))
#define UV_DIG (BIT_DIGITS(UVSIZE * 8))
+/* We like our integers to stay integers. */
+#ifndef NO_PERL_PRESERVE_IVUV
+#define PERL_PRESERVE_IVUV
+#endif
+
/*
* The macros INT2PTR and NUM2PTR are (despite their names)
* bi-directional: they will convert int/float to or from pointers.
@@ -3247,6 +3252,9 @@ typedef struct am_table_short AMTS;
# if !defined(Strtol) && defined(HAS_STRTOLL)
# define Strtol strtoll
# endif
+# if !defined(Strtol) && defined(HAS_STRTOQ)
+# define Strtol strtoq
+# endif
/* is there atoq() anywhere? */
#endif
#if !defined(Strtol) && defined(HAS_STRTOL)