Try to make PPPort.pm 5.005-friendlier (see [perl #21339]).
Jarkko Hietaniemi [Tue, 4 Mar 2003 20:22:25 +0000 (20:22 +0000)]
The variant is from how List::Util Util.xs does it.

p4raw-id: //depot/perl@18826

ext/Devel/PPPort/PPPort.pm

index 5f57ac6..77ef45b 100644 (file)
@@ -357,7 +357,7 @@ __DATA__
 #   ifndef __PATCHLEVEL_H_INCLUDED__
 #       include <patchlevel.h>
 #   endif
-#   ifndef PERL_VERSION
+#   if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL)))
 #       include <could_not_find_Perl_patchlevel.h>
 #   endif
 #   ifndef PERL_REVISION