jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.06k stars 1.72k forks source link

[Windows] Define TLS as _Thread_local if compiler supports C11 to avoid warnings with Clang-MinGW #1304

Closed Scr3amer closed 10 months ago

Scr3amer commented 10 months ago

Hello hello,

Here I am with a first PR to remove some warnings when compiling on Windows-msys using clang-mingw-ucrt.

This avoids having warnings when compiling with Clang-MinGW on windows. Otherwise I have a warning saying __declspec(thread) is not recognised by clang.exe.

Cheers, Scr3am