diff options
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-catch-load.c')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-catch-load.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-catch-load.c b/gdb/testsuite/gdb.mi/mi-catch-load.c index 83efda8..8fa45ad 100644 --- a/gdb/testsuite/gdb.mi/mi-catch-load.c +++ b/gdb/testsuite/gdb.mi/mi-catch-load.c @@ -15,9 +15,16 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <dlfcn.h> #include <stdio.h> +#ifdef __WIN32__ +#include <windows.h> +#define dlopen(name, mode) LoadLibrary (TEXT (name)) +#define dlclose(handle) FreeLibrary (handle) +#else +#include <dlfcn.h> +#endif + char *libname = "mi-catch-load-so.so"; int |