Data::Dumper doesn't need ppport.h in core
Jerry D. Hedden [Tue, 20 Mar 2007 11:48:24 +0000 (04:48 -0700)]
From: "Jerry D. Hedden" <jdhedden@yahoo.com>
Message-ID: <627715.37131.qm@web30212.mail.mud.yahoo.com>

p4raw-id: //depot/perl@30656

ext/Data/Dumper/Dumper.pm
ext/Data/Dumper/Dumper.xs
ext/Data/Dumper/Makefile.PL
mkppport.lst

index 4efc17a..1c1fb6d 100644 (file)
@@ -9,7 +9,7 @@
 
 package Data::Dumper;
 
-$VERSION = '2.121_11';
+$VERSION = '2.121_12';
 
 #$| = 1;
 
index b09a023..dff007b 100644 (file)
@@ -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
index 12930c5..1548c75 100644 (file)
@@ -8,4 +8,9 @@ WriteMakefile(
                             DIST_DEFAULT => 'all tardist',
                           },
        MAN3PODS        => {},
+        (
+            (grep { $_ eq 'PERL_CORE=1' } @ARGV)
+                ? ()
+                : ('DEFINE' => '-DUSE_PPPORT_H')
+        ),
 );
index 58ce54e..7840f3c 100644 (file)
@@ -6,7 +6,6 @@
 #
 
 ext/Cwd
-ext/Data/Dumper
 ext/Sys/Syslog
 ext/Time/HiRes
 ext/Win32API/File