Using #ifdef PL_parser is not enough. In some perls, depending on
configuration, PL_parser is a real symbol and not a define.
git-svn-id: http://dev.catalyst.perl.org/repos/bast/Devel-Declare/1.000/trunk@4875
bd8105ee-0ff8-0310-8827-fb3f25b6796d
Changes for Devel-Declare
- - eliminate PERL_5_9_PLUS macro in favour of ifdef PL_parser
- clean up checks for whether we're lexing and whether lex_stuff exists
to handle the PL_parser factor-out in 5.10
#define PERL_5_8_8_PLUS
#endif
-#ifdef PL_parser
+#if PERL_REVISION == 5 && PERL_VERSION > 8
+#define PERL_5_9_PLUS
+#endif
+
+#ifdef PERL_5_9_PLUS
/* 5.9+ moves a bunch of things to a PL_parser struct so we need to
declare the backcompat macros for things to still work (mst) */