Use new macro CvGV_set() (see perl5133delta)
gfx [Tue, 20 Jul 2010 11:09:10 +0000 (20:09 +0900)]
mouse.h
xs-src/MouseUtil.xs

diff --git a/mouse.h b/mouse.h
index 20415de..2c57da0 100644 (file)
--- a/mouse.h
+++ b/mouse.h
 #define GvNAMELEN_get GvNAMELEN
 #endif
 
+#ifndef CvGV_set
+#define CvGV_set(cv, gv) (CvGV(cv) = (gv))
+#endif
+
 #ifndef mro_get_linear_isa
 #define no_mro_get_linear_isa
 #define mro_get_linear_isa(stash) mouse_mro_get_linear_isa(aTHX_ stash)
index ae5fb39..2d557a6 100644 (file)
@@ -348,7 +348,7 @@ mouse_install_sub(pTHX_ GV* const gv, SV* const code_ref) {
             }
         }
 
-        CvGV(cv) = gv;
+        CvGV_set(cv, gv);
         CvANON_off(cv);
     }
 }