Skip to content

Commit

Permalink
Fix linking of in Rust binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
hgaiser committed Jan 22, 2025
1 parent 2890983 commit 4e5d1eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/inputtino/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#endif
#include <stdbool.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef struct InputtinoDeviceDefinition {
const char *name;
unsigned short vendor_id;
Expand Down Expand Up @@ -307,4 +311,8 @@ LIBINPUTTINO_EXPORT void inputtino_joypad_ps5_set_on_led(InputtinoPS5Joypad *joy

LIBINPUTTINO_EXPORT void inputtino_joypad_ps5_destroy(InputtinoPS5Joypad *joypad);

#ifdef __cplusplus
} // extern "C"
#endif

#endif

0 comments on commit 4e5d1eb

Please sign in to comment.