From dc51fbb2e9ff3b8ee2921792fd5d012ec88093a1 Mon Sep 17 00:00:00 2001 From: Sainan Date: Fri, 25 Oct 2024 17:49:26 +0200 Subject: [PATCH 1/2] Fix plugin.h not exporting ANALOG_SDK_PLUGIN_ABI_VERSION --- includes/plugin.h | 2 +- wooting-analog-sdk/test_c_plugin/src/plugin.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/plugin.h b/includes/plugin.h index b7a1d3a..39d00be 100644 --- a/includes/plugin.h +++ b/includes/plugin.h @@ -21,7 +21,7 @@ #define ANALOGSDK_API ANALOGSDK_EXPORT #endif -const uint32_t ANALOG_SDK_PLUGIN_ABI_VERSION = 1; +ANALOGSDK_API const uint32_t ANALOG_SDK_PLUGIN_ABI_VERSION = 1; typedef void (*device_event)(void const *, WootingAnalog_DeviceEventType, const WootingAnalog_DeviceInfo_FFI *); diff --git a/wooting-analog-sdk/test_c_plugin/src/plugin.c b/wooting-analog-sdk/test_c_plugin/src/plugin.c index 242600d..043ec3e 100644 --- a/wooting-analog-sdk/test_c_plugin/src/plugin.c +++ b/wooting-analog-sdk/test_c_plugin/src/plugin.c @@ -1,3 +1,4 @@ +#define ANALOGSDK_EXPORTS #include "../../../includes/plugin.h" static bool initialised = false; From 5f8fa3ddd96b97c00c09a60807a15ba4e47ce6d6 Mon Sep 17 00:00:00 2001 From: Sainan Date: Fri, 25 Oct 2024 17:49:40 +0200 Subject: [PATCH 2/2] Remove pragma comment lib from plugin.h --- includes/plugin.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/plugin.h b/includes/plugin.h index 39d00be..55baead 100644 --- a/includes/plugin.h +++ b/includes/plugin.h @@ -9,8 +9,6 @@ #else #define ANALOGSDK_EXPORT __declspec(dllimport) #endif -#pragma comment(lib, "userenv.lib") -#pragma comment(lib, "WS2_32") #else #define ANALOGSDK_EXPORT #endif