Skip to content

Commit

Permalink
Update plugin.h for ABIv1 (#84)
Browse files Browse the repository at this point in the history
* Fix plugin.h not exporting ANALOG_SDK_PLUGIN_ABI_VERSION

* Remove pragma comment lib from plugin.h
  • Loading branch information
Sainan authored Oct 28, 2024
1 parent c588569 commit 1c202bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions includes/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 *);
Expand Down
1 change: 1 addition & 0 deletions wooting-analog-sdk/test_c_plugin/src/plugin.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define ANALOGSDK_EXPORTS
#include "../../../includes/plugin.h"

static bool initialised = false;
Expand Down

0 comments on commit 1c202bf

Please sign in to comment.