Skip to content

Commit 2e4ad1a

Browse files
committed
Revert ticks implementation for Mac build, too.
1 parent bccb09b commit 2e4ad1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extmod/moduasyncio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "py/pairheap.h"
3030
#include "py/mphal.h"
3131

32-
#ifndef __unix__
32+
#if !(defined(__unix__) || defined(__APPLE__))
3333
#include "shared-bindings/supervisor/__init__.h"
3434
#endif
3535

@@ -67,7 +67,7 @@ STATIC mp_obj_t task_queue_make_new(const mp_obj_type_t *type, size_t n_args, si
6767
/******************************************************************************/
6868
// Ticks for task ordering in pairing heap
6969

70-
#ifdef __unix__
70+
#if (defined(__unix__) || defined(__APPLE__))
7171
STATIC mp_obj_t ticks(void) {
7272
return MP_OBJ_NEW_SMALL_INT(mp_hal_ticks_ms() & (MICROPY_PY_UTIME_TICKS_PERIOD - 1));
7373
}

0 commit comments

Comments
 (0)