aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-dlfcn.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-11-17 15:17:44 +0000
committerPedro Alves <palves@redhat.com>2015-11-17 15:18:58 +0000
commit2986367f8eea0dc5febab9c9fd1cf06b3a4a8fdb (patch)
tree0f4c966a7306f8605823b4e5ab82cd48d8ca3a61 /gdb/gdb-dlfcn.c
parent0ae1c716a162ce43a63c16c37aa8c6caaa484650 (diff)
downloadgdb-2986367f8eea0dc5febab9c9fd1cf06b3a4a8fdb.zip
gdb-2986367f8eea0dc5febab9c9fd1cf06b3a4a8fdb.tar.gz
gdb-2986367f8eea0dc5febab9c9fd1cf06b3a4a8fdb.tar.bz2
[C++/mingw] gdb-dlfcn.c casts
Fixes: ../../src/gdb/gdb-dlfcn.c: In function 'void* gdb_dlsym(void*, const char*)': ../../src/gdb/gdb-dlfcn.c:105:49: error: invalid conversion from 'void*' to 'HMODULE {aka HINSTANCE__*}' [-fpermissive] return (void *) GetProcAddress (handle, symbol); ^ gdb/ChangeLog: 2015-11-17 Pedro Alves <palves@redhat.com> * gdb-dlfcn.c (gdb_dlsym, gdb_dlclose) [__MINGW32__]: Add casts to HMODULE.
Diffstat (limited to 'gdb/gdb-dlfcn.c')
-rw-r--r--gdb/gdb-dlfcn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gdb-dlfcn.c b/gdb/gdb-dlfcn.c
index fb6dc5f..fbd3a49 100644
--- a/gdb/gdb-dlfcn.c
+++ b/gdb/gdb-dlfcn.c
@@ -102,7 +102,7 @@ gdb_dlsym (void *handle, const char *symbol)
#ifdef HAVE_DLFCN_H
return dlsym (handle, symbol);
#elif __MINGW32__
- return (void *) GetProcAddress (handle, symbol);
+ return (void *) GetProcAddress ((HMODULE) handle, symbol);
#endif
}
@@ -112,7 +112,7 @@ gdb_dlclose (void *handle)
#ifdef HAVE_DLFCN_H
return dlclose (handle);
#elif __MINGW32__
- return !((int) FreeLibrary (handle));
+ return !((int) FreeLibrary ((HMODULE) handle));
#endif
}