Skip to content

Commit 2c640f6

Browse files
committed
version 0.74
version 0.74
1 parent 9e5145b commit 2c640f6

File tree

6 files changed

+56
-11
lines changed

6 files changed

+56
-11
lines changed

API.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ use File::Basename ();
5858
#######################################################################
5959
# STATIC OBJECT PROPERTIES
6060
#
61-
$VERSION = '0.73';
61+
$VERSION = '0.74';
6262

6363
#### some package-global hash to
6464
#### keep track of the imported
@@ -1297,7 +1297,7 @@ L<Win32::API::Type>
12971297
12981298
L<Win32::API::Callback>
12991299
1300-
L<Win32::API::IATPatch>
1300+
L<Win32::API::Callback::IATPatch>
13011301
13021302
L<http://homepage.ntlworld.com/jonathan.deboynepollard/FGA/function-calling-conventions.html>
13031303

Callback.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use strict;
1616
use warnings;
1717
use vars qw( $VERSION @ISA $Stage2FuncPtrPkd );
1818

19-
$VERSION = '0.73';
19+
$VERSION = '0.74';
2020

2121

2222
require Exporter; # to export the constants to the main:: space
@@ -553,7 +553,7 @@ See L<Win32::API/UseMI64>.
553553
554554
=head1 SEE ALSO
555555
556-
L<Win32::API::IATPatch>
556+
L<Win32::API::Callback::IATPatch>
557557
558558
=head1 AUTHOR
559559

Callback/Makefile.PL

+21
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,27 @@
33

44
use ExtUtils::MakeMaker qw/ WriteMakefile/;
55

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+
627
WriteMakefile(
728
'NAME' => 'Win32::API::Callback',
829
($] < 5.005 ? () : (

Changes

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
History of Win32::API perl extension.
22

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+
39
2012-10-20 Win32::API v0.73 bulk88
410
- Known Issue, IATPatch usually does not work on Cygwin
511
- Fixed, now works on 32 bit Cygwin Perl

Makefile.PL

+18
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ die qq(OS unsupported\n)
1010

1111
# Must be a better way to do this, surely...
1212
use Config;
13+
require './Test.pm';
14+
1315
my $is_64bit_build = ($Config{ptrsize} == 8);
1416
my $is_msvc_compiler = ($Config{cc} =~ /cl/);
1517

@@ -62,6 +64,7 @@ WriteMakefile1(
6264
#'clean' => {FILES => 'API_test.dll API_test_dll/Release/*'},
6365

6466
XSOPT => ' -nolinenumbers ',
67+
($ExtUtils::MakeMaker::VERSION >= 6.47 ? (MIN_PERL_VERSION => 5.000000) : ()),
6568

6669
(
6770
$is_64bit_build
@@ -113,6 +116,21 @@ ASFLAGS = -Zi
113116
';
114117
}
115118

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+
116134
sub WriteMakefile1 { #Written by Alexandr Ciornii, version 0.21. Added by eumm-upgrade.
117135
my %params=@_;
118136
my $eumm_version=$ExtUtils::MakeMaker::VERSION;

Struct.pm

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ package Win32::API::Struct;
99
use strict;
1010
use warnings;
1111
use vars qw( $VERSION @ISA );
12-
$VERSION = '0.63';
12+
$VERSION = '0.64';
1313

1414
use Carp;
1515
use Win32::API::Type;
@@ -465,13 +465,13 @@ sub is_known {
465465
return 1;
466466
}
467467
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};
471471
}
472-
$_ = $name;
473-
if(s/\*$//){
474-
return exists $Known{$_};
472+
$nametest = $name;
473+
if($nametest =~ s/\*$//){
474+
return exists $Known{$nametest};
475475
}
476476
return 0;
477477
}

0 commit comments

Comments
 (0)