Make the patchlevel.h inclusion attempt pre-5.6.0-safe(r)
[p5sagit/p5-mst-13.2.git] / ext / Data / Dumper / Dumper.xs
index 00b52df..c0ab07c 100644 (file)
@@ -5,7 +5,7 @@
 
 #ifndef PERL_VERSION
 #    include <patchlevel.h>
-#    ifndef PERL_VERSION
+#    if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL)))
 #        include <could_not_find_Perl_patchlevel.h>
 #    endif
 #    define PERL_VERSION PATCHLEVEL