Commit d7924bce4 for imagemagick.org
commit d7924bce42b25ec901fc673e766c34039f37e94a
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Sat Aug 22 15:59:45 2026 +0200
Use omp_set_max_active_levels on MSYS2 build instead.
diff --git a/MagickCore/thread-private.h b/MagickCore/thread-private.h
index 9ae8edbcb..4bdf0405b 100644
--- a/MagickCore/thread-private.h
+++ b/MagickCore/thread-private.h
@@ -183,7 +183,7 @@ static inline void SetOpenMPMaximumThreads(const int magick_unused(threads))
#if defined(MAGICKCORE_OPENMP_SUPPORT)
static inline void SetOpenMPMaxActiveLevels(const int value)
{
-#if defined(MAGICKCORE_WINDOWS_SUPPORT)
+#if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__MINGW32__)
omp_set_nested(value);
#else
omp_set_max_active_levels(value ? 2 : 1);