CvISXSUB was introduced in 5.10
Jesse Luehrs [Mon, 26 Sep 2011 20:23:04 +0000 (15:23 -0500)]
Changes
mop.h

diff --git a/Changes b/Changes
index e11f4ab..8fd6a04 100644 (file)
--- a/Changes
+++ b/Changes
@@ -3,6 +3,10 @@ for, noteworthy changes.
 
 {{$NEXT}}
 
+  [BUG FIXES]
+
+  * Fix compilation on 5.8. Reported by ether. (doy)
+
 2.0300 Fri, Sep 23, 2011
 
   [DEPRECATIONS]
diff --git a/mop.h b/mop.h
index 6dcd91d..4b02796 100644 (file)
--- a/mop.h
+++ b/mop.h
 #define XSPROTO(name) XS_EXTERNAL(name)
 #endif
 
+#ifndef CvISXSUB
+#define CvISXSUB(cv)  (CvXSUB(cv) ? TRUE : FALSE)
+#endif
+
 void mop_call_xs (pTHX_ XSPROTO(subaddr), CV *cv, SV **mark);
 
 typedef enum {