File tree 6 files changed +56
-11
lines changed
6 files changed +56
-11
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ use File::Basename ();
58
58
# ######################################################################
59
59
# STATIC OBJECT PROPERTIES
60
60
#
61
- $VERSION = ' 0.73 ' ;
61
+ $VERSION = ' 0.74 ' ;
62
62
63
63
# ### some package-global hash to
64
64
# ### keep track of the imported
@@ -1297,7 +1297,7 @@ L<Win32::API::Type>
1297
1297
1298
1298
L<Win32::API::Callback>
1299
1299
1300
- L<Win32::API::IATPatch>
1300
+ L<Win32::API::Callback:: IATPatch>
1301
1301
1302
1302
L<http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/function-calling-conventions.html>
1303
1303
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use strict;
16
16
use warnings;
17
17
use vars qw( $VERSION @ISA $Stage2FuncPtrPkd ) ;
18
18
19
- $VERSION = ' 0.73 ' ;
19
+ $VERSION = ' 0.74 ' ;
20
20
21
21
22
22
require Exporter; # to export the constants to the main:: space
@@ -553,7 +553,7 @@ See L<Win32::API/UseMI64>.
553
553
554
554
=head1 SEE ALSO
555
555
556
- L<Win32::API::IATPatch>
556
+ L<Win32::API::Callback:: IATPatch>
557
557
558
558
=head1 AUTHOR
559
559
Original file line number Diff line number Diff line change 3
3
4
4
use ExtUtils::MakeMaker qw/ WriteMakefile/ ;
5
5
6
+ # Must be a better way to do this, surely...
7
+ use Config;
8
+
9
+ my $is_64bit_build = ($Config {ptrsize } == 8);
10
+ my $is_msvc_compiler = ($Config {cc } =~ / cl/ );
11
+
12
+ sub GS_flag {
13
+ if ($is_msvc_compiler
14
+ && Win32::API::Test::compiler_version_from_shell() >= 14 ) {
15
+ return ' -GS- ' ;
16
+ }
17
+ else {
18
+ return ' ' ;
19
+ }
20
+ }
21
+
22
+ sub MY ::post_constants {
23
+ return ' CCFLAGS ' .($_ [0]-> {MAKE } =~ / ^make/ || $_ [0]-> {MAKE } =~ / ^dmake/ ? ' :=' : ' =' )
24
+ . ' $(CCFLAGS) ' .GS_flag()." \n " ;
25
+ }
26
+
6
27
WriteMakefile(
7
28
' NAME' => ' Win32::API::Callback' ,
8
29
($] < 5.005 ? () : (
Original file line number Diff line number Diff line change 1
1
History of Win32::API perl extension.
2
2
3
+ 2012-11-21 Win32::API v0.74 bulk88
4
+ - Fixed, non threaded Perl fix from Reini Urban
5
+ - Fixed, Perl 5.8 in Struct.pm syntax error (cpantesters report)
6
+ - Fixed, LNK 4210 warning on >= VS 2005 fixed
7
+ - Fixed, misc POD
8
+
3
9
2012-10-20 Win32::API v0.73 bulk88
4
10
- Known Issue, IATPatch usually does not work on Cygwin
5
11
- Fixed, now works on 32 bit Cygwin Perl
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ die qq(OS unsupported\n)
10
10
11
11
# Must be a better way to do this, surely...
12
12
use Config;
13
+ require ' ./Test.pm' ;
14
+
13
15
my $is_64bit_build = ($Config {ptrsize } == 8);
14
16
my $is_msvc_compiler = ($Config {cc } =~ / cl/ );
15
17
@@ -62,6 +64,7 @@ WriteMakefile1(
62
64
# 'clean' => {FILES => 'API_test.dll API_test_dll/Release/*'},
63
65
64
66
XSOPT => ' -nolinenumbers ' ,
67
+ ($ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => 5.000000) : ()),
65
68
66
69
(
67
70
$is_64bit_build
@@ -113,6 +116,21 @@ ASFLAGS = -Zi
113
116
' ;
114
117
}
115
118
119
+ sub MY ::post_constants {
120
+ return ' CCFLAGS ' .($_ [0]-> {MAKE } =~ / ^make/ || $_ [0]-> {MAKE } =~ / ^dmake/ ? ' :=' : ' =' )
121
+ . ' $(CCFLAGS) ' .GS_flag()." \n " ;
122
+ }
123
+
124
+ sub GS_flag {
125
+ if ($is_msvc_compiler
126
+ && Win32::API::Test::compiler_version_from_shell() >= 14 ) {
127
+ return ' -GS- ' ;
128
+ }
129
+ else {
130
+ return ' ' ;
131
+ }
132
+ }
133
+
116
134
sub WriteMakefile1 { # Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
117
135
my %params =@_ ;
118
136
my $eumm_version =$ExtUtils::MakeMaker::VERSION ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ package Win32::API::Struct;
9
9
use strict;
10
10
use warnings;
11
11
use vars qw( $VERSION @ISA ) ;
12
- $VERSION = ' 0.63 ' ;
12
+ $VERSION = ' 0.64 ' ;
13
13
14
14
use Carp;
15
15
use Win32::API::Type;
@@ -465,13 +465,13 @@ sub is_known {
465
465
return 1;
466
466
}
467
467
else {
468
- my $_ = $name ;
469
- if (s / ^LP// ) {
470
- return exists $Known {$_ };
468
+ my $nametest = $name ;
469
+ if ($nametest =~ s / ^LP// ) {
470
+ return exists $Known {$nametest };
471
471
}
472
- $_ = $name ;
473
- if (s /\* $// ){
474
- return exists $Known {$_ };
472
+ $nametest = $name ;
473
+ if ($nametest =~ s /\* $// ){
474
+ return exists $Known {$nametest };
475
475
}
476
476
return 0;
477
477
}
You can’t perform that action at this time.
0 commit comments