pre 5.9.x.
p4raw-id: //depot/perl@30142
specialsv_list[6] = (SV *) pWARN_STD;
#if PERL_VERSION <= 8
# define CVf_ASSERTION 0
+# define OPpPAD_STATE 0
#endif
#include "defsubs.h"
}
#define B_init_av() PL_initav
#define B_inc_gv() PL_incgv
#define B_check_av() PL_checkav_save
-#define B_unitcheck_av() PL_unitcheckav_save
+#if PERL_VERSION > 8
+# define B_unitcheck_av() PL_unitcheckav_save
+#else
+# define B_unitcheck_av() NULL
+#endif
#define B_begin_av() PL_beginav_save
#define B_end_av() PL_endav
#define B_main_root() PL_main_root
{
doconst($const);
}
+
+if ($] < 5.009) {
+ # This is only present in 5.10, but it's useful to B::Deparse to be able
+ # to import a dummy value from B
+ doconst(OPpPAD_STATE);
+}
+
foreach my $file (qw(op.h cop.h))
{
my $path = $^O eq 'MacOS' ? ":::$file" : "../../$file";