Просмотр исходного кода

fix pthreads under windows msys2 mingw (#413)

Co-authored-by: hibays <12765444+hibays@user.noreply.gitee.com>
hibays 2 месяцев назад
Родитель
Сommit
0eabbda7d4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/pocketpy/common/threads.h

+ 1 - 1
include/pocketpy/common/threads.h

@@ -7,7 +7,7 @@
 #include <stdatomic.h>
 #include <stdbool.h>
 
-#if __EMSCRIPTEN__ || __APPLE__ || __linux__
+#if __EMSCRIPTEN__ || __APPLE__ || __linux__ || __MINGW32__
 #include <pthread.h>
 #define PK_USE_PTHREADS 1
 typedef pthread_t c11_thrd_t;