From 3ff63749b2338f0f00c05a0851cbad30af160e5c Mon Sep 17 00:00:00 2001 From: William Moses Date: Sat, 18 Oct 2025 07:35:44 +0800 Subject: [PATCH 1/2] Fix pthread build on mingw cc @giordano @avik-pal --- src/pthreads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pthreads.c b/src/pthreads.c index ea09e53..a6d0a6c 100644 --- a/src/pthreads.c +++ b/src/pthreads.c @@ -74,7 +74,7 @@ #endif /* Alloca */ -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__MINGW32__) #include #define alloca _alloca #elif !defined(alloca) && defined(__GNUC__) From 2fba5a2d1c53789cff38079924440a3328f8c577 Mon Sep 17 00:00:00 2001 From: William Moses Date: Sat, 18 Oct 2025 07:45:05 +0800 Subject: [PATCH 2/2] Update src/pthreads.c MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com> --- src/pthreads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pthreads.c b/src/pthreads.c index a6d0a6c..dad9d9b 100644 --- a/src/pthreads.c +++ b/src/pthreads.c @@ -74,7 +74,7 @@ #endif /* Alloca */ -#if defined(_MSC_VER) || defined(__MINGW32__) +#if defined(_WIN32) #include #define alloca _alloca #elif !defined(alloca) && defined(__GNUC__)