winpthreads: adjust compiler options when building with MSVC
Check for `_MSC_VER` macro instead of checking `$CC` to recognize
MSVC-like compilers. `MSC_VER` is alse defined by `clang-cl.exe`.
Use `-W3` instead of `-Wall` when building with MSVC-link compilers.
The `-Wall` flag is way too noisy.
Add a few more *feature* macros when building with MSVC-like compilers.
This silences warnings about *unsafe* functions and allows to pass
MSVC's `-Zc:__STDC__` compiler option.
Signed-off-by: Kirill Makurin <maiddaisuki@outlook.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2 files changed