From 9ea4080170688502a51eb7f66ecfafe8f08c4cd8 Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Thu, 19 Sep 2013 14:27:10 +0100 Subject: 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. --- util.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'util.h') 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 -- cgit v1.2.1