fix pthreads under windows msys2 mingw

This commit is contained in:
hibays 2025-12-10 22:48:42 +08:00
parent e3bd4cfa95
commit fa8a53d139

View File

@ -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;