From: Florian Ragwitz Date: Fri, 29 May 2009 18:43:16 +0000 (+0200) Subject: Don't define MEM_WRAP_CHECK_ if it's already there. X-Git-Tag: 0.005004~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=60d774aad75bd42a67ae25f104408de832a104f0;p=p5sagit%2FDevel-Declare.git Don't define MEM_WRAP_CHECK_ if it's already there. Courtesy of Maik Fischer. --- diff --git a/stolen_chunk_of_toke.c b/stolen_chunk_of_toke.c index 85f714e..9bb96d5 100644 --- a/stolen_chunk_of_toke.c +++ b/stolen_chunk_of_toke.c @@ -35,7 +35,6 @@ STATIC char* S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow #define DPTR2FPTR(t,p) ((t)PTR2nat(p)) /* data pointer to function pointer */ #define FPTR2DPTR(t,p) ((t)PTR2nat(p)) /* function pointer to data pointer */ #define PTR2nat(p) (PTRV)(p) /* pointer to integer of PTRSIZE */ -#define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t), /* conditionalise these two because as of 5.9.5 we already get them from the headers (mst) */ @@ -45,6 +44,9 @@ STATIC char* S_scan_word(pTHX_ char *s, char *dest, STRLEN destlen, int allow #ifndef SvPVX_const #define SvPVX_const(sv) ((const char*) (0 + SvPVX(sv))) #endif +#ifndef MEM_WRAP_CHECK_ +#define MEM_WRAP_CHECK_(n,t) MEM_WRAP_CHECK(n,t), +#endif #define SvPV_renew(sv,n) \ STMT_START { SvLEN_set(sv, n); \