diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-21 22:08:51 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-01-21 22:08:51 +0000 |
commit | 069d7f7183fb67de35505013a65ce03b587225f0 (patch) | |
tree | 50cffe0126d46398b8d8fec09d1d62687342323a /ext/List | |
parent | 01d07975f7ef0e7dd339708172dbf5a4de2f8c8c (diff) | |
download | perl-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/List')
-rw-r--r-- | ext/List/Util/Util.xs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/List/Util/Util.xs b/ext/List/Util/Util.xs index f96b45162b..db9ce1571a 100644 --- a/ext/List/Util/Util.xs +++ b/ext/List/Util/Util.xs @@ -8,7 +8,10 @@ #include <XSUB.h> #ifndef PERL_VERSION -# include "patchlevel.h" +# include <patchlevel.h> +# ifndef PERL_VERSION +# include <could_not_find_Perl_patchlevel.h> +# endif # define PERL_REVISION 5 # define PERL_VERSION PATCHLEVEL # define PERL_SUBVERSION SUBVERSION |