From 5b49efb7a0caed0d95ec89e8f3f9ba54602c2200 Mon Sep 17 00:00:00 2001 From: "Paul m. p. Peny" Date: Thu, 10 Oct 2024 16:29:00 +0200 Subject: [PATCH] wasm: better wasm fencing --- src_c/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_c/time.c b/src_c/time.c index 383782d9b3..66dc4fc6f3 100644 --- a/src_c/time.c +++ b/src_c/time.c @@ -402,7 +402,7 @@ time_set_timer(PyObject *self, PyObject *args, PyObject *kwargs) /* do not allow set_timer to work on WASM for now... this needs some more * testing and fixes that are WIP on other PRs */ -#ifdef __EMSCRIPTEN__ +#if defined(__EMSCRIPTEN__) || defined(__wasi__) return RAISE(PyExc_NotImplementedError, "set_timer is not implemented on WASM yet"); #endif