]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - Types.xs
Fix building with PERL_IMPLICIT_SYS
[perl/modules/Lexical-Types.git] / Types.xs
index 0b5b3f5fd1c97f2581f7f2c775bf00d836e2b547..60f499c19274d4f00531015a4518717758adc096 100644 (file)
--- a/Types.xs
+++ b/Types.xs
 # endif
 #endif
 
-#ifndef Newx
-# define Newx(v, n, c) New(0, v, n, c)
-#endif
-
 #ifndef HvNAME_get
 # define HvNAME_get(H) HvNAME(H)
 #endif
@@ -78,7 +74,8 @@ typedef struct {
  OP *(*pp_padsv)(pTHX);
 } lt_op_info;
 
-STATIC void lt_map_store(const OP *o, SV *orig_pkg, SV *type_pkg, SV *type_meth, OP *(*pp_padsv)(pTHX)) {
+STATIC void lt_map_store(pPTABLE_ const OP *o, SV *orig_pkg, SV *type_pkg, SV *type_meth, OP *(*pp_padsv)(pTHX)) {
+#define lt_map_store(O, OP, TP, TM, PP) lt_map_store(aPTABLE_ (O), (OP), (TP), (TM), (PP))
  lt_op_info *oi;
 
 #ifdef USE_ITHREADS