New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] fix link failure of APItest.dll on VC 6 #15145
Comments
From @bulk88Created by @bulk88See branch Perl Info
|
From @tonycozOn Tue Jan 26 00:10:21 2016, bulk88 wrote:
Please attach patches so people who follow tickets by email don't It also acts as a more permanent record of the patches in the general case. Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @bulk88patch attached -- |
From @bulk880001-fix-link-failure-of-APItest.dll-on-VC-6.patchFrom ac28051cf7525b9b6e72ad563a7d3402c68aa596 Mon Sep 17 00:00:00 2001
From: Daniel Dragan <bulk88@hotmail.com>
Date: Tue, 26 Jan 2016 00:02:56 -0500
Subject: [PATCH] fix link failure of APItest.dll on VC 6
alloca is the newer "standardized" name which modern VCs support.
In VC 6, only _alloca exists, which is the prestandardized name, use it to
fix a linker failure.
---
ext/XS-APItest/APItest.xs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs
index e542611..51924a8 100644
--- a/ext/XS-APItest/APItest.xs
+++ b/ext/XS-APItest/APItest.xs
@@ -5547,7 +5547,7 @@ Comctl32Version()
croak("Comctl32Version: comctl32.dll no version???");
ver = LoadResource(dll, hrsc);
len = SizeofResource(dll, hrsc);
- vercopy = alloca(len);
+ vercopy = _alloca(len);
memcpy(vercopy, ver, len);
if (VerQueryValue(vercopy, "\\", (void**)&info, &len)) {
int dwValueMS1 = (info->dwFileVersionMS>>16);
--
1.7.9.msysgit.0
|
@tonycoz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#127371 (status was 'resolved')
Searchable as RT127371$
The text was updated successfully, but these errors were encountered: