summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 066ed720d4..69a4caf063 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -232,7 +232,7 @@ typedef long gid_t;
/* compatibility stuff for other compilers goes here */
-#if !defined(PERL_OBJECT) && defined(PERL_MEMBER_PTR_SIZE)
+#if !defined(PERL_OBJECT) && defined(PERL_CAPI) && defined(PERL_MEMBER_PTR_SIZE)
# define STRUCT_MGVTBL_DEFINITION \
struct mgvtbl { \
union { \
@@ -268,7 +268,7 @@ struct mgvtbl { \
U8 op_flags; \
U8 op_private;
-#endif /* !PERL_OBJECT && PERL_MEMBER_PTR_SIZE */
+#endif /* !PERL_OBJECT && PERL_CAPI && PERL_MEMBER_PTR_SIZE */
START_EXTERN_C