patch 8.2.1929: MS-Windows: problem loading Perl 5.32
Problem: MS-Windows: problem loading Perl 5.32.
Solution: Define NO_THREAD_SAFE_LOCALE. (Ken Takata, closes #7234)
diff --git a/src/if_perl.xs b/src/if_perl.xs
index e54a79d..999dff5 100644
--- a/src/if_perl.xs
+++ b/src/if_perl.xs
@@ -44,12 +44,13 @@
# define PERL_NO_INLINE_FUNCTIONS
#endif
-/* Work around for using MSVC and ActivePerl 5.18. */
#ifdef _MSC_VER
+// Work around for using MSVC and ActivePerl 5.18.
# define __inline__ __inline
-
// Work around for using MSVC and Strawberry Perl 5.30.
# define __builtin_expect(expr, val) (expr)
+// Work around for using MSVC and Strawberry Perl 5.32.
+# define NO_THREAD_SAFE_LOCALE
#endif
#ifdef __GNUC__