summaryrefslogtreecommitdiff
path: root/handy.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 /handy.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 'handy.h')
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index 27fb18b574..f80ba2c9a5 100644
--- a/handy.h
+++ b/handy.h
@@ -125,7 +125,7 @@ Null SV pointer. (No longer available when C<PERL_CORE> is defined.)
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || (defined(__SUNPRO_C)) /* C99 or close enough. */
# define FUNCTION__ __func__
#else
-# if (defined(_MSC_VER) && _MSC_VER < 1300) || /* MSVC6 has neither __func__ nor __FUNCTION and no good workarounds, either. */ \
+# if (defined(USING_MSVC6)) || /* MSVC6 has neither __func__ nor __FUNCTION and no good workarounds, either. */ \
(defined(__DECC_VER)) /* Tru64 or VMS, and strict C89 being used, but not modern enough cc (in Tur64, -c99 not known, only -std1). */
# define FUNCTION__ ""
# else