summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2013-09-19 14:27:10 +0100
committerSteve Hay <steve.m.hay@googlemail.com>2013-09-19 14:50:43 +0100
commit9ea4080170688502a51eb7f66ecfafe8f08c4cd8 (patch)
treee57792439df20034f04ad57cec922950e36c2964 /util.h
parente8384d8ddf034f3e8db40d1beac3236976fa05ba (diff)
downloadperl-9ea4080170688502a51eb7f66ecfafe8f08c4cd8.tar.gz
Add a USING_MSVC6 macro to identify Microsoft Visual C++ 6.0
This simplifies some of the logic necessary for coping with its various problems. Suggested by Nicholas Clark.
Diffstat (limited to 'util.h')
-rw-r--r--util.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/util.h b/util.h
index 87a3f26914..08544f5600 100644
--- a/util.h
+++ b/util.h
@@ -55,12 +55,10 @@ This is a synonym for (! foldEQ_locale())
/* outside the core, perl.h undefs HAS_QUAD if IV isn't 64-bit
We can't swap this to HAS_QUAD, because the logic here affects the type of
perl_drand48_t below, and that is visible outside of the core. */
-#ifdef U64TYPE
-# if !defined(_MSC_VER) || _MSC_VER >= 1300
+#if defined(U64TYPE) && !defined(USING_MSVC6)
/* use a faster implementation when quads are available,
* but not with VC6 on Windows */
# define PERL_DRAND48_QUAD
-# endif
#endif
#ifdef PERL_DRAND48_QUAD