diff --git a/cyjs/bridge.h b/cyjs/bridge.h index 5ec79cc..bd89c26 100644 --- a/cyjs/bridge.h +++ b/cyjs/bridge.h @@ -132,7 +132,11 @@ static JSRuntime* CYJS_NewRuntime(void* opaque){ the program remebers to exit (Will move it to cython after all of the first tests succeed and the library has had it's first release) */ /* the interrupt handler has a NULL Opaque for right now because we can ignore needing it. */ +#if _WIN32 JS_SetInterruptHandler(rt, CYJS_SigInterruptHandler, NULL); +#else + JS_SetInterruptHandler(rt, (JSInterruptHandler*)CYJS_SigInterruptHandler, NULL); +#endif return rt; } diff --git a/quickjs b/quickjs index 66adc82..7a23d8e 160000 --- a/quickjs +++ b/quickjs @@ -1 +1 @@ -Subproject commit 66adc822eb0f0ac65e6b73d9a5c3fac50e43224e +Subproject commit 7a23d8e3fedb010070ef1a03873c55500c7aa1a9 diff --git a/setup.py b/setup.py index e4584d5..50585da 100644 --- a/setup.py +++ b/setup.py @@ -323,7 +323,7 @@ def finalize_options(self): if __name__ == "__main__": - if sys.platform != "linux": + if sys.platform == "win32": setup( ext_modules=[ Extension(