diff options
Diffstat (limited to 'ext/Digest')
-rw-r--r-- | ext/Digest/MD5/MD5.xs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/Digest/MD5/MD5.xs b/ext/Digest/MD5/MD5.xs index b1f2a04cdf..f70acbb8fa 100644 --- a/ext/Digest/MD5/MD5.xs +++ b/ext/Digest/MD5/MD5.xs @@ -44,10 +44,13 @@ extern "C" { } #endif -#include <patchlevel.h> -#ifndef PERL_VERSION -# include <could_not_find_Perl_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 |