fix: Windows build (#4628)

This commit is contained in:
Sebastian Ullrich 2024-07-02 22:32:00 +02:00 committed by GitHub
parent 6080e3dd5c
commit b28cfb9336
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -42,7 +42,7 @@ void check_heartbeat() {
LEAN_THREAD_VALUE(lean_object *, g_cancel_tk, nullptr);
scope_cancel_tk::scope_cancel_tk(lean_object * o):flet<lean_object *>(g_cancel_tk, o) {}
LEAN_EXPORT scope_cancel_tk::scope_cancel_tk(lean_object * o):flet<lean_object *>(g_cancel_tk, o) {}
/* CancelToken.isSet : @& IO.CancelToken → BaseIO Bool */
extern "C" lean_obj_res lean_io_cancel_token_is_set(b_lean_obj_arg cancel_tk, lean_obj_arg);

View file

@ -43,9 +43,9 @@ public:
LEAN_EXPORT void check_heartbeat();
/* Update the thread local `IO.CancelToken` (`nullptr` if unset) */
class scope_cancel_tk : flet<lean_object *> {
class LEAN_EXPORT scope_cancel_tk : flet<lean_object *> {
public:
scope_cancel_tk(lean_object *);
LEAN_EXPORT scope_cancel_tk(lean_object *);
};
/**