summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1998-09-29 03:56:33 +0300
committerGurusamy Sarathy <gsar@cpan.org>1998-10-02 01:53:25 +0000
commit85ab1d1d99f8dc082af2267b48b9a2c5983f3161 (patch)
tree15498360e04711d0a640d19d489175cdf9982398 /perl.h
parent13b51b796ac5d39ced5a8f4f5922bfa7ca1678d5 (diff)
downloadperl-85ab1d1d99f8dc082af2267b48b9a2c5983f3161.tar.gz
various Configure and hints updates (prefer drand48() or random()
over rand(); add -Dusemultiplicity; enhanced 64-bitness); patch applied modulo SCO hints superseded by later patch Message-Id: <199809282156.AAA18615@alpha.hut.fi> Subject: [PATCH] 5.005_52: Configure et al: p4raw-id: //depot/perl@1904
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/perl.h b/perl.h
index c9ec37a5de..2871d8021f 100644
--- a/perl.h
+++ b/perl.h
@@ -836,9 +836,7 @@ Free_t Perl_free _((Malloc_t where));
because then IV/UV have been 32 bits, too. Which, in turn means
that even if the system has quads (e.g. long long), IV cannot be a
quad. Introducing a 64-bit IV (because of long long existing)
- would introduce binary incompatibility. Therefore the
- USE_LONG_LONG guard below when probing for quads and the check for
- PTRSIZE further down when defining IV/UV.
+ will introduce binary incompatibility.
Summary: a long long system needs to add -DUSE_LONG_LONG to $ccflags
to get quads -- and if its pointers are still 32 bits, this will break
@@ -889,7 +887,7 @@ Free_t Perl_free _((Malloc_t where));
#endif
/* See above note on LP32 about the PTRSIZE test. --jhi */
-#if defined(HAS_QUAD) && PTRSIZE > 4
+#if defined(HAS_QUAD) && (PTRSIZE > 4 || defined(USE_LONG_LONG))
typedef Quad_t IV;
typedef unsigned Quad_t UV;
# if defined(PERL_QUAD_IS_INT64_T) && defined(INT64_MAX)
@@ -1194,8 +1192,9 @@ typedef union any ANY;
# endif
/* Some systems have open64() in libc but use that only
* for true LP64 mode, in mixed mode (ILP32LL64, for example)
- * they use the vanilla open(). --jhi */
-# if defined(HAS_OPEN64) && !defined(NO_OPEN64)
+ * they use the vanilla open(). Such systems should undefine
+ * d_open64 in their hints files. --jhi */
+# if defined(HAS_OPEN64)
# define open open64
# endif
# ifdef HAS_OPENDIR64