Make the patchlevel.h inclusion attempt pre-5.6.0-safe(r)
[p5sagit/p5-mst-13.2.git] / ext / MIME / Base64 / Base64.xs
index da2da50..6f855fb 100644 (file)
@@ -35,7 +35,13 @@ extern "C" {
 }
 #endif
 
-#include "patchlevel.h"
+#ifndef PATCHLEVEL
+#    include <patchlevel.h>
+#    if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL)))
+#        include <could_not_find_Perl_patchlevel.h>
+#    endif
+#endif
+
 #if PATCHLEVEL <= 4 && !defined(PL_dowarn)
    #define PL_dowarn dowarn
 #endif