Stop redefining the prototype for XSUBs.
Florian Ragwitz [Sun, 15 Mar 2009 18:06:43 +0000 (19:06 +0100)]
mop.c
mop.h

diff --git a/mop.c b/mop.c
index 739f9d8..126568d 100644 (file)
--- a/mop.c
+++ b/mop.c
@@ -1,7 +1,7 @@
 #include "mop.h"
 
 void
-mop_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *), CV *cv, SV **mark)
+mop_call_xs (pTHX_ XSPROTO(subaddr), CV *cv, SV **mark)
 {
     dSP;
     PUSHMARK(mark);
diff --git a/mop.h b/mop.h
index 1264f07..7566652 100644 (file)
--- a/mop.h
+++ b/mop.h
@@ -12,7 +12,7 @@
 
 #define MOP_CALL_BOOT(name)  mop_call_xs(aTHX_ name, cv, mark);
 
-void mop_call_xs (pTHX_ void (*subaddr) (pTHX_ CV *), CV *cv, SV **mark);
+void mop_call_xs (pTHX_ XSPROTO(subaddr), CV *cv, SV **mark);
 
 typedef enum {
     KEY_name,