odygrd / quill

Asynchronous Low Latency C++ Logging Library
MIT License
1.36k stars 142 forks source link

fix windows clang-cl build error #399 #400

Closed tetsuh closed 5 months ago

tetsuh commented 6 months ago

This PR fixes Windows clang-cl build error: "constexpr variable 'strnlen' must be initialized by a constant expression. "

Unfortunately the strnlen() seems incompatible with constexpr in clang-cl compile. But in the case of this case, MSVC/clang-cl can use the strnlen_s() function anyway.

This changes should only affects the Windows MSVC/clang-cl build.

descrived in #399

odygrd commented 5 months ago

Thanks for the PR : )