From: Florian Ragwitz Date: Mon, 20 Oct 2008 11:29:34 +0000 (+0000) Subject: On 5.9.5+ PL_parser is always available, although not always a define, but a symbol. X-Git-Tag: 0.005000~57 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f19b3507352e4d34a809ea5ac7bef85715901d58;p=p5sagit%2FDevel-Declare.git On 5.9.5+ PL_parser is always available, although not always a define, but a symbol. --- diff --git a/Declare.xs b/Declare.xs index 78177fb..ae5b164 100644 --- a/Declare.xs +++ b/Declare.xs @@ -25,7 +25,7 @@ static int in_declare = 0; #define DD_AM_LEXING_CHECK (PL_lex_state == LEX_NORMAL || PL_lex_state == LEX_INTERPNORMAL) -#ifdef PL_parser +#if defined(PL_parser) || defined(PERL_5_9_PLUS) #define DD_HAVE_PARSER PL_parser #define DD_HAVE_LEX_STUFF (PL_parser && PL_lex_stuff) #define DD_AM_LEXING (PL_parser && DD_AM_LEXING_CHECK)