This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix Windows build (of Encode) with VC++ 6.0
authorSteve Hay <steve.m.hay@googlemail.com>
Mon, 28 Apr 2014 17:16:26 +0000 (18:16 +0100)
committerSteve Hay <steve.m.hay@googlemail.com>
Mon, 28 Apr 2014 17:16:26 +0000 (18:16 +0100)
Patch originally created by Daniel Dragan on perl #121554, and modified by
Dan Kogai to save introducing a warning on redefinition.

Sent upstream as cpan #95130.

Porting/Maintainers.pl
cpan/Encode/Encode.pm
cpan/Encode/Encode.xs
cpan/Encode/Encode/encode.h
cpan/Encode/Unicode/Unicode.xs
t/porting/customized.dat

index ac41b2d..4fe35d5 100755 (executable)
@@ -390,6 +390,10 @@ use File::Glob qw(:case);
     'Encode' => {
         'DISTRIBUTION' => 'DANKOGAI/Encode-2.57.tar.gz',
         'FILES'        => q[cpan/Encode],
+        'CUSTOMIZED'   => [
+            # Waiting to be merged upstream: see CPAN RT#95130
+            qw(        Encode.pm Encode.xs Encode/encode.h Unicode/Unicode.xs ),
+        ],
     },
 
     'encoding::warnings' => {
index 0c58043..a5be18b 100644 (file)
@@ -4,7 +4,7 @@
 package Encode;
 use strict;
 use warnings;
-our $VERSION = sprintf "%d.%02d", q$Revision: 2.57 $ =~ /(\d+)/g;
+our $VERSION = sprintf "%d.%02d", q$Revision: 2.57_01 $ =~ /(\d+)/g;
 use constant DEBUG => !!$ENV{PERL_ENCODE_DEBUG};
 use XSLoader ();
 XSLoader::load( __PACKAGE__, $VERSION );
index ea9265f..0ecd094 100644 (file)
@@ -6,7 +6,6 @@
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
-#define U8 U8
 #include "encode.h"
 
 # define PERLIO_MODNAME  "PerlIO::encoding"
index 0dcf83d..af34ba2 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef ENCODE_H
 #define ENCODE_H
 
-#ifndef U8
+#if !defined(U8) && !defined(U8TYPE)
 /* 
    A tad devious this:
    perl normally has a #define for U8 - if that isn't present then we
index 4abbf72..c2a8ec2 100644 (file)
@@ -6,7 +6,6 @@
 #include "EXTERN.h"
 #include "perl.h"
 #include "XSUB.h"
-#define U8 U8
 #include "../Encode/encode.h"
 
 #define FBCHAR                 0xFFFd
index cd4bdde..311b33f 100644 (file)
@@ -1,4 +1,8 @@
 Digest::MD5 cpan/Digest-MD5/t/files.t bdbe05b705d9da305fedce7a9f4b6ba63250c7cf
+Encode cpan/Encode/Encode.pm cf239e1b3a79a564d01a9a011f7ebc80f4551a65
+Encode cpan/Encode/Encode.xs 4edcc474315eb3f38f53e24418bca7e7c2809cc8
+Encode cpan/Encode/Encode/encode.h e2565cefa0b9a0ff82801d7fa740a2df831932ca
+Encode cpan/Encode/Unicode/Unicode.xs 27731231063734c063c661f3af4d95150f9d87ac
 Module::Build cpan/Module-Build/lib/Module/Build/ConfigData.pm 85eb9656e68d1f256737dc52d86b5d0fed28f832
 PerlIO::via::QuotedPrint cpan/PerlIO-via-QuotedPrint/t/QuotedPrint.t ca39f0146e89de02c746e199c45dcb3e5edad691
 Text::Balanced cpan/Text-Balanced/t/01_compile.t 1598cf491a48fa546260a2ec41142abe84da533d