summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2014-12-20 13:08:37 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2014-12-24 13:20:07 +0000
commit5c5f0d52fc42141069a3d6406c7f85eaa0455ea1 (patch)
treef2b6b782072f1313f0b2b8474f98add01aee230b
parent6fc8e9130585a1ee4218f0f202dc83ed942f802d (diff)
downloadperl-5c5f0d52fc42141069a3d6406c7f85eaa0455ea1.tar.gz
Fix compilation errors in DynaLoader.c with MinGW/gcc -xc++
error: invalid conversion from 'void*' to 'HMODULE'
-rw-r--r--ext/DynaLoader/DynaLoader_pm.PL2
-rw-r--r--ext/DynaLoader/dl_win32.xs2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/DynaLoader/DynaLoader_pm.PL b/ext/DynaLoader/DynaLoader_pm.PL
index f2c082e58e..c9800b7fc7 100644
--- a/ext/DynaLoader/DynaLoader_pm.PL
+++ b/ext/DynaLoader/DynaLoader_pm.PL
@@ -85,7 +85,7 @@ package DynaLoader;
# Tim.Bunce@ig.co.uk, August 1994
BEGIN {
- $VERSION = '1.29';
+ $VERSION = '1.30';
}
use Config;
diff --git a/ext/DynaLoader/dl_win32.xs b/ext/DynaLoader/dl_win32.xs
index 178ca7c142..d99f11615f 100644
--- a/ext/DynaLoader/dl_win32.xs
+++ b/ext/DynaLoader/dl_win32.xs
@@ -148,7 +148,7 @@ dl_unload_file(libref)
void * libref
CODE:
DLDEBUG(1,PerlIO_printf(Perl_debug_log, "dl_unload_file(%lx):\n", PTR2ul(libref)));
- RETVAL = FreeLibrary(libref);
+ RETVAL = FreeLibrary((HMODULE)libref);
if (!RETVAL)
SaveError(aTHX_ "unload_file:%s", OS_Error_String(aTHX)) ;
DLDEBUG(2,PerlIO_printf(Perl_debug_log, " retval = %d\n", RETVAL));