From: Jarkko Hietaniemi Date: Sat, 15 Feb 2003 08:16:26 +0000 (+0000) Subject: Make the patchlevel.h inclusion attempt pre-5.6.0-safe(r) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a3bf621f36e93c14b1d9e7c57c2ce75d1a8b29d4;p=p5sagit%2Fp5-mst-13.2.git Make the patchlevel.h inclusion attempt pre-5.6.0-safe(r) (problem noticed by Graham with List::Util). p4raw-id: //depot/perl@18709 --- diff --git a/ext/Data/Dumper/Dumper.xs b/ext/Data/Dumper/Dumper.xs index 00b52df..c0ab07c 100644 --- a/ext/Data/Dumper/Dumper.xs +++ b/ext/Data/Dumper/Dumper.xs @@ -5,7 +5,7 @@ #ifndef PERL_VERSION # include -# ifndef PERL_VERSION +# if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL))) # include # endif # define PERL_VERSION PATCHLEVEL diff --git a/ext/Digest/MD5/MD5.xs b/ext/Digest/MD5/MD5.xs index b1f2a04..f70acbb 100644 --- a/ext/Digest/MD5/MD5.xs +++ b/ext/Digest/MD5/MD5.xs @@ -44,10 +44,13 @@ extern "C" { } #endif -#include -#ifndef PERL_VERSION -# include +#ifndef PATCHLEVEL +# include +# if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL))) +# include +# endif #endif + #if PATCHLEVEL <= 4 && !defined(PL_dowarn) #define PL_dowarn dowarn #endif diff --git a/ext/MIME/Base64/Base64.xs b/ext/MIME/Base64/Base64.xs index da2da50..6f855fb 100644 --- a/ext/MIME/Base64/Base64.xs +++ b/ext/MIME/Base64/Base64.xs @@ -35,7 +35,13 @@ extern "C" { } #endif -#include "patchlevel.h" +#ifndef PATCHLEVEL +# include +# if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL))) +# include +# endif +#endif + #if PATCHLEVEL <= 4 && !defined(PL_dowarn) #define PL_dowarn dowarn #endif diff --git a/ext/Storable/Storable.xs b/ext/Storable/Storable.xs index 7cc610e..4073f92 100644 --- a/ext/Storable/Storable.xs +++ b/ext/Storable/Storable.xs @@ -10,11 +10,14 @@ #include #include -#include /* Perl's one, needed since 5.6 */ +#include + #ifndef PERL_VERSION -# include +# include /* Perl's one, needed since 5.6 */ +# if !(defined(PERL_VERSION) || (SUBVERSION > 0 && defined(PATCHLEVEL))) +# include +# endif #endif -#include #ifndef NETWARE #if 0