summaryrefslogtreecommitdiff
path: root/ext/Digest
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-01-21 22:08:51 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-01-21 22:08:51 +0000
commit069d7f7183fb67de35505013a65ce03b587225f0 (patch)
tree50cffe0126d46398b8d8fec09d1d62687342323a /ext/Digest
parent01d07975f7ef0e7dd339708172dbf5a4de2f8c8c (diff)
downloadperl-069d7f7183fb67de35505013a65ce03b587225f0.tar.gz
Try to make including patchlevel.h a bit more
robust (use <> instead of "") and in case of failure (PERL_VERSION didn't get defined) try to fail (by trying to #include an "obviously" named file that should not exist) (didn't use #error since IIRC older cpps do not have it) (Tries to address [perl #20276].) p4raw-id: //depot/perl@18541
Diffstat (limited to 'ext/Digest')
-rw-r--r--ext/Digest/MD5/MD5.xs5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/Digest/MD5/MD5.xs b/ext/Digest/MD5/MD5.xs
index abc1748044..b1f2a04cdf 100644
--- a/ext/Digest/MD5/MD5.xs
+++ b/ext/Digest/MD5/MD5.xs
@@ -44,7 +44,10 @@ extern "C" {
}
#endif
-#include "patchlevel.h"
+#include <patchlevel.h>
+#ifndef PERL_VERSION
+# include <could_not_find_Perl_patchlevel.h>
+#endif
#if PATCHLEVEL <= 4 && !defined(PL_dowarn)
#define PL_dowarn dowarn
#endif