From 2f81f36c415e191bb50a498527b7604c537c97dd Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Mon, 14 Aug 2023 11:37:41 -0400 Subject: [PATCH] fix windows mpy-cross builds; tnx @jepler --- extmod/moduasyncio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extmod/moduasyncio.c b/extmod/moduasyncio.c index 014de0db27..ea81fbc310 100644 --- a/extmod/moduasyncio.c +++ b/extmod/moduasyncio.c @@ -29,14 +29,14 @@ #include "py/pairheap.h" #include "py/mphal.h" +#if MICROPY_PY_UASYNCIO + #if CIRCUITPY && !(defined(__unix__) || defined(__APPLE__)) #include "shared-bindings/supervisor/__init__.h" #endif #include "supervisor/shared/translate/translate.h" -#if MICROPY_PY_UASYNCIO - // Used when task cannot be guaranteed to be non-NULL. #define TASK_PAIRHEAP(task) ((task) ? &(task)->pairheap : NULL)