mirror of
https://github.com/janet-lang/janet
synced 2025-08-01 08:42:52 +00:00
Define JanetTimeout only if event loop enabled
This commit is contained in:
parent
5a29a28c11
commit
87c1eab7d4
@ -55,6 +55,7 @@ typedef struct {
|
|||||||
void *data;
|
void *data;
|
||||||
} JanetQueue;
|
} JanetQueue;
|
||||||
|
|
||||||
|
#ifdef JANET_EV
|
||||||
typedef struct {
|
typedef struct {
|
||||||
JanetTimestamp when;
|
JanetTimestamp when;
|
||||||
JanetFiber *fiber;
|
JanetFiber *fiber;
|
||||||
@ -68,6 +69,7 @@ typedef struct {
|
|||||||
pthread_t worker;
|
pthread_t worker;
|
||||||
#endif
|
#endif
|
||||||
} JanetTimeout;
|
} JanetTimeout;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Registry table for C functions - contains metadata that can
|
/* Registry table for C functions - contains metadata that can
|
||||||
* be looked up by cfunction pointer. All strings here are pointing to
|
* be looked up by cfunction pointer. All strings here are pointing to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user