This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Changes for threads::shared to all building with g++.
[perl5.git] / ext / threads / shared / shared.xs
index 955874a..25fdec6 100644 (file)
@@ -318,10 +318,10 @@ MGVTBL sharedsv_userlock_vtbl = {
    the shared thing.
  */
 
-MGVTBL sharedsv_scalar_vtbl;    /* Scalars have this vtable */
-MGVTBL sharedsv_array_vtbl;     /* Hashes and arrays have this - like 'tie' */
-MGVTBL sharedsv_elem_vtbl;      /* Elements of hashes and arrays have this
-                                   _AS WELL AS_ the scalar magic:
+extern MGVTBL sharedsv_scalar_vtbl; /* Scalars have this vtable */
+extern MGVTBL sharedsv_array_vtbl;  /* Hashes and arrays have this - like 'tie' */
+extern MGVTBL sharedsv_elem_vtbl;   /* Elements of hashes and arrays have this
+                                _AS WELL AS_ the scalar magic:
    The sharedsv_elem_vtbl associates the element with the array/hash and
    the sharedsv_scalar_vtbl associates it with the value
  */