fix(windows): prevent @intCast crash on windows
This commit is contained in:
parent
5ba56ab5c7
commit
379b7e8abf
5 changed files with 15 additions and 10 deletions
|
@ -5,11 +5,13 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
struct thespian_metronome_handle;
|
||||
struct thespian_metronome_handle *
|
||||
thespian_metronome_create_ms(unsigned long ms);
|
||||
thespian_metronome_create_ms(uint64_t ms);
|
||||
struct thespian_metronome_handle *
|
||||
thespian_metronome_create_us(unsigned long us);
|
||||
thespian_metronome_create_us(uint64_t us);
|
||||
int thespian_metronome_start(struct thespian_metronome_handle *);
|
||||
int thespian_metronome_stop(struct thespian_metronome_handle *);
|
||||
void thespian_metronome_destroy(struct thespian_metronome_handle *);
|
||||
|
|
|
@ -2,16 +2,19 @@
|
|||
|
||||
#include <cbor/c/cbor.h>
|
||||
|
||||
|
||||
// NOLINTBEGIN(modernize-use-trailing-return-type)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
struct thespian_timeout_handle;
|
||||
struct thespian_timeout_handle *
|
||||
thespian_timeout_create_ms(unsigned long ms, cbor_buffer m);
|
||||
thespian_timeout_create_ms(uint64_t ms, cbor_buffer m);
|
||||
struct thespian_timeout_handle *
|
||||
thespian_timeout_create_us(unsigned long us, cbor_buffer m);
|
||||
thespian_timeout_create_us(uint64_t us, cbor_buffer m);
|
||||
int thespian_timeout_cancel(struct thespian_timeout_handle *);
|
||||
void thespian_timeout_destroy(struct thespian_timeout_handle *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue