summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/Data/Dumper/Dumper.pm2
-rw-r--r--ext/Data/Dumper/Dumper.xs4
-rw-r--r--ext/Data/Dumper/Makefile.PL5
-rw-r--r--mkppport.lst1
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