summaryrefslogtreecommitdiff
path: root/cv.h
diff options
context:
space:
mode:
Diffstat (limited to 'cv.h')
-rw-r--r--cv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cv.h b/cv.h
index e8cb162272..cd722f3c92 100644
--- a/cv.h
+++ b/cv.h
@@ -66,7 +66,11 @@ S_CvDEPTHp(const CV * const sv)
{
return SvTYPE(sv) == SVt_PVCV
? &((XPVCV*)SvANY(sv))->xcv_depth
+#if defined(_MSC_VER) && _MSC_VER < 1300
+ : &((XPVCV*)SvANY(sv))->xpvcuru_fmdepth;
+#else
: &((XPVCV*)SvANY(sv))->xpv_cur_u.xpvcuru_fmdepth;
+#endif
}
#if defined(__GNUC__) && !defined(PERL_GCC_BRACE_GROUPS_FORBIDDEN)
# define CvDEPTH(sv) (*({const CV *const _cvdepth = (const CV *)sv; \