Only define NO_THREAD_SAFE_LOCALE for MSVC plperl when required
authorAndrew Dunstan <[email protected]>
Sat, 14 Sep 2024 12:37:08 +0000 (08:37 -0400)
committerAndrew Dunstan <[email protected]>
Sat, 14 Sep 2024 13:19:04 +0000 (09:19 -0400)
commit9f77494647ded10c5ffd67cea92abcfdaea7dddd
treeb0bbfa93cb00b18e0158c810ca93e1b8cad7116e
parentb49013f2e86ad2cf01953f79992574e7ec2cdf02
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.
src/tools/msvc/Mkvcbuild.pm