Make the patchlevel.h inclusion attempt pre-5.6.0-safe(r)
[p5sagit/p5-mst-13.2.git] / ext / Storable / Storable.xs
index 7cc610e..4073f92 100644 (file)
 
 #include <EXTERN.h>
 #include <perl.h>
-#include <patchlevel.h>                /* Perl's one, needed since 5.6 */
+#include <XSUB.h>
+
 #ifndef PERL_VERSION
-#    include <could_not_find_Perl_patchlevel.h>
+#    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
 #endif
-#include <XSUB.h>
 
 #ifndef NETWARE
 #if 0