This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
IV changes for long long (was Re: 5.004_68 on its way to the CPAN)
[perl5.git] / mg.h
diff --git a/mg.h b/mg.h
index c464746..16efdb5 100644 (file)
--- a/mg.h
+++ b/mg.h
@@ -7,13 +7,17 @@
  *
  */
 
+#ifdef STRUCT_MGVTBL_DEFINITION
+STRUCT_MGVTBL_DEFINITION;
+#else
 struct mgvtbl {
-    int                (*svt_get)      _((SV *sv, MAGIC* mg));
-    int                (*svt_set)      _((SV *sv, MAGIC* mg));
-    U32                (*svt_len)      _((SV *sv, MAGIC* mg));
-    int                (*svt_clear)    _((SV *sv, MAGIC* mg));
-    int                (*svt_free)     _((SV *sv, MAGIC* mg));
+    int                (CPERLscope(*svt_get))  _((SV *sv, MAGIC* mg));
+    int                (CPERLscope(*svt_set))  _((SV *sv, MAGIC* mg));
+    U32                (CPERLscope(*svt_len))  _((SV *sv, MAGIC* mg));
+    int                (CPERLscope(*svt_clear))        _((SV *sv, MAGIC* mg));
+    int                (CPERLscope(*svt_free)) _((SV *sv, MAGIC* mg));
 };
+#endif
 
 struct magic {
     MAGIC*     mg_moremagic;