summaryrefslogtreecommitdiff
path: root/ext/XS-APItest/APItest.xs
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2016-01-26 00:02:56 -0500
committerTony Cook <tony@develop-help.com>2016-01-27 14:19:07 +1100
commitf3c6f22e7318c8711613a58d4b041922a6465567 (patch)
treeeb29443dbd1eb917f87e882470b1aae9b1155816 /ext/XS-APItest/APItest.xs
parent6368ab83389bbb63c0dfff79297f52b92053226e (diff)
downloadperl-f3c6f22e7318c8711613a58d4b041922a6465567.tar.gz
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.
Diffstat (limited to 'ext/XS-APItest/APItest.xs')
-rw-r--r--ext/XS-APItest/APItest.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs
index e542611c4d..51924a8d47 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);