p4raw-id: //depot/perl@23233
#include <XSUB.h>
#ifndef PATCHLEVEL
-# include <patchlevel.h> /* Perl's one, needed since 5.6 */
-# if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL)))
-# include <could_not_find_Perl_patchlevel.h>
-# endif
+#include <patchlevel.h> /* Perl's one, needed since 5.6 */
#endif
-#if PERL_VERSION < 8
+#if !defined(PERL_VERSION) || PERL_VERSION < 8
#include "ppport.h" /* handle old perls */
#endif
}
require Scalar::Util;
- Scalar::Util->import qw(weaken isweak);
+ Scalar::Util->import(qw(weaken isweak));
if (grep { /weaken/ } @Scalar::Util::EXPORT_FAIL) {
print("1..0 # Skip: No support for weaken in Scalar::Util\n");
exit 0;