From 47dc70721424d2fd4f7e1f67bfbe98a346d7f223 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 26 Sep 2017 14:50:56 -0400 Subject: [PATCH] Fix Windows build --- compile.mk | 2 +- src/plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compile.mk b/compile.mk index 8e598d5a..7b61a7f9 100644 --- a/compile.mk +++ b/compile.mk @@ -29,7 +29,7 @@ endif OBJECTS += $(patsubst %, build/%.o, $(SOURCES)) -DEPS = $(patsubst %.o, %.d, $(OBJECTS)) +DEPS = $(patsubst %, build/%.d, $(SOURCES)) # Final targets diff --git a/src/plugin.cpp b/src/plugin.cpp index 5a74e794..07ee7583 100644 --- a/src/plugin.cpp +++ b/src/plugin.cpp @@ -238,7 +238,7 @@ void pluginDestroy() { // Free library handle #if ARCH_WIN if (plugin->handle) - FreeLibrary(plugin->handle); + FreeLibrary((HINSTANCE)plugin->handle); #elif ARCH_LIN || ARCH_MAC if (plugin->handle) dlclose(plugin->handle);