diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2014-12-20 13:08:37 +0000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2014-12-24 13:20:07 +0000 |
commit | 5c5f0d52fc42141069a3d6406c7f85eaa0455ea1 (patch) | |
tree | f2b6b782072f1313f0b2b8474f98add01aee230b | |
parent | 6fc8e9130585a1ee4218f0f202dc83ed942f802d (diff) | |
download | perl-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.PL | 2 | ||||
-rw-r--r-- | ext/DynaLoader/dl_win32.xs | 2 |
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)); |