Only define NO_THREAD_SAFE_LOCALE for MSVC plperl when required
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 14 Sep 2024 12:37:08 +0000 (08:37 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 14 Sep 2024 12:47:06 +0000 (08:47 -0400)
commitbc46104fc9aa5254f98250cf2756552f92095ae9
treef1e747ccb10eb9adca4f1d13b526951cab41272a
parentfae55f0bb38504b3774fa50152d3c14d2f09aa15
Only define NO_THREAD_SAFE_LOCALE for MSVC plperl when required

Latest versions of Strawberry Perl define USE_THREAD_SAFE_LOCALE, and we
therefore get a handshake error when building against such instances.
The solution is to perform a test to see if USE_THREAD_SAFE_LOCALE is
defined and only define NO_THREAD_SAFE_LOCALE if it isn't.

Backpatch the meson.build fix back to release 16 and apply the same
logic to Mkvcbuild.pm in releases 12 through 16.

Original report of the issue from Muralikrishna Bandaru.
meson.build