diff --git a/includes/plugin.h b/includes/plugin.h index b7a1d3a..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 @@ -21,7 +19,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;