Mouse::Util::does_role() respects $thing->does() method
[gitmo/Mouse.git] / mouse.h
diff --git a/mouse.h b/mouse.h
index ff5edf8..e8ce999 100644 (file)
--- a/mouse.h
+++ b/mouse.h
@@ -1,6 +1,8 @@
 #ifndef MOUSE_H
 #define MOUSE_H
 
+#define PERL_EUPXS_ALWAYS_EXPORT
+
 #include "xshelper.h"
 
 #ifndef mro_get_linear_isa
@@ -18,6 +20,10 @@ AV* mouse_mro_get_linear_isa(pTHX_ HV* const stash);
 #endif /* !no_mro_get_linear_isa */
 #endif /* mro_get_package_gen */
 
+#ifndef GvCV_set
+#define GvCV_set(gv, cv) (GvCV(gv) = (cv))
+#endif
+
 extern SV* mouse_package;
 extern SV* mouse_methods;
 extern SV* mouse_name;
@@ -191,8 +197,6 @@ CV* mouse_generate_can_predicate_for(pTHX_ SV* const klass, const char* const pr
 
 int mouse_is_an_instance_of(pTHX_ HV* const stash, SV* const instance);
 
-XS(XS_Mouse_constraint_check);
-
 /* Mouse XS Attribute object */
 
 AV* mouse_get_xa(pTHX_ SV* const attr);