summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2013-09-13 22:57:59 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2013-09-13 23:09:50 +0100
commit63835f7971cba357334d2e18bcc585f707740980 (patch)
tree24545604c6916c6d50fff6db0c76b4f6c602fd60 /util.h
parentdd9a180e74e86e123c4a37c05803e14975ecbb69 (diff)
downloadperl-63835f7971cba357334d2e18bcc585f707740980.tar.gz
Fix the VC6 build on Windows following commit 3be8f09452
The VC6 compiler has slightly flaky support for __int64 and chokes on util.c when using the 64-bit implementation of drand48, so switch it to the 32-bit version instead.
Diffstat (limited to 'util.h')
-rw-r--r--util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/util.h b/util.h
index 4e5b97d88b..38c8d2f3ed 100644
--- a/util.h
+++ b/util.h
@@ -54,8 +54,11 @@ This is a synonym for (! foldEQ_locale())
/* perl.h undefs HAS_QUAD if IV isn't 64-bit */
#ifdef U64TYPE
-/* use a faster implementation when quads are available */
-#define PERL_DRAND48_QUAD
+# if !defined(_MSC_VER) || _MSC_VER >= 1300
+/* use a faster implementation when quads are available,
+ * but not with VC6 on Windows */
+# define PERL_DRAND48_QUAD
+# endif
#endif
#ifdef PERL_DRAND48_QUAD