fix pthreads under windows msys2 mingw (#413)

Co-authored-by: hibays <12765444+hibays@user.noreply.gitee.com>
This commit is contained in:
hibays 2025-12-10 23:00:46 +08:00 committed by GitHub
parent e3bd4cfa95
commit 0eabbda7d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;