ppport.h tweaks: share the function entity in all object files
gfx [Tue, 18 Aug 2009 04:47:55 +0000 (13:47 +0900)]
mop.c
mop.h

diff --git a/mop.c b/mop.c
index 73732b5..c2b5066 100644 (file)
--- a/mop.c
+++ b/mop.c
@@ -1,3 +1,7 @@
+#define NEED_newRV_noinc_GLOBAL
+#define NEED_sv_2pv_flags_GLOBAL
+#define NEED_sv_2pv_nolen_GLOBAL
+#define NEED_newSVpvn_flags_GLOBAL
 #include "mop.h"
 
 void
diff --git a/mop.h b/mop.h
index 594b4fe..4de63e5 100644 (file)
--- a/mop.h
+++ b/mop.h
@@ -6,9 +6,6 @@
 #include "perl.h"
 #include "XSUB.h"
 
-#define NEED_newRV_noinc
-#define NEED_sv_2pv_flags
-#define NEED_sv_2pv_nolen
 #include "ppport.h"
 
 #define MOP_CALL_BOOT(name)  mop_call_xs(aTHX_ name, cv, mark);