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:50:44 +0000 (08:50 -0400)
commit0a0db46313749bb379db65eb987af6bf29470300
tree6559e7ab9318cb9aeb581347ad985a2d0323f36d
parentd23109f4bd65ef217dbd72846afa949927640463
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
src/tools/msvc/Mkvcbuild.pm