/* Platform independent shared object routines for GDB.
- Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ Copyright (C) 2011-2016 Free Software Foundation, Inc.
This file is part of GDB.
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "gdb_assert.h"
-
#include "gdb-dlfcn.h"
#ifdef HAVE_DLFCN_H
#ifdef HAVE_DLFCN_H
return dlsym (handle, symbol);
#elif __MINGW32__
- return (void *) GetProcAddress (handle, symbol);
+ return (void *) GetProcAddress ((HMODULE) handle, symbol);
#endif
}
#ifdef HAVE_DLFCN_H
return dlclose (handle);
#elif __MINGW32__
- return !((int) FreeLibrary (handle));
+ return !((int) FreeLibrary ((HMODULE) handle));
#endif
}