diff options
author | Jerry D. Hedden <jdhedden@cpan.org> | 2007-03-20 04:48:24 -0700 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-03-21 10:24:52 +0000 |
commit | 171b7b3bb498e65337955ed3530343cea00bd509 (patch) | |
tree | 62e50a4285f13728c965026605af07ef3dca4323 | |
parent | 9f44f717b5c2e526c60d74be999e0ad9ef069b1a (diff) | |
download | perl-171b7b3bb498e65337955ed3530343cea00bd509.tar.gz |
Data::Dumper doesn't need ppport.h in core
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <627715.37131.qm@web30212.mail.mud.yahoo.com>
p4raw-id: //depot/perl@30656
-rw-r--r-- | ext/Data/Dumper/Dumper.pm | 2 | ||||
-rw-r--r-- | ext/Data/Dumper/Dumper.xs | 4 | ||||
-rw-r--r-- | ext/Data/Dumper/Makefile.PL | 5 | ||||
-rw-r--r-- | mkppport.lst | 1 |
4 files changed, 9 insertions, 3 deletions
diff --git a/ext/Data/Dumper/Dumper.pm b/ext/Data/Dumper/Dumper.pm index 4efc17a90d..1c1fb6d552 100644 --- a/ext/Data/Dumper/Dumper.pm +++ b/ext/Data/Dumper/Dumper.pm @@ -9,7 +9,7 @@ package Data::Dumper; -$VERSION = '2.121_11'; +$VERSION = '2.121_12'; #$| = 1; diff --git a/ext/Data/Dumper/Dumper.xs b/ext/Data/Dumper/Dumper.xs index b09a023bcd..dff007ba4e 100644 --- a/ext/Data/Dumper/Dumper.xs +++ b/ext/Data/Dumper/Dumper.xs @@ -2,7 +2,9 @@ #include "EXTERN.h" #include "perl.h" #include "XSUB.h" -#include "ppport.h" +#ifdef USE_PPPORT_H +# include "ppport.h" +#endif #if PERL_VERSION < 6 # define DD_USE_OLD_ID_FORMAT diff --git a/ext/Data/Dumper/Makefile.PL b/ext/Data/Dumper/Makefile.PL index 12930c5c39..1548c75dda 100644 --- a/ext/Data/Dumper/Makefile.PL +++ b/ext/Data/Dumper/Makefile.PL @@ -8,4 +8,9 @@ WriteMakefile( DIST_DEFAULT => 'all tardist', }, MAN3PODS => {}, + ( + (grep { $_ eq 'PERL_CORE=1' } @ARGV) + ? () + : ('DEFINE' => '-DUSE_PPPORT_H') + ), ); diff --git a/mkppport.lst b/mkppport.lst index 58ce54ece7..7840f3c4e9 100644 --- a/mkppport.lst +++ b/mkppport.lst @@ -6,7 +6,6 @@ # ext/Cwd -ext/Data/Dumper ext/Sys/Syslog ext/Time/HiRes ext/Win32API/File |