diff --git a/quill/include/quill/detail/Serialize.h b/quill/include/quill/detail/Serialize.h index bf7df29c3..6b85c28dd 100644 --- a/quill/include/quill/detail/Serialize.h +++ b/quill/include/quill/detail/Serialize.h @@ -29,7 +29,7 @@ namespace detail { constexpr auto strnlen = -#ifdef __STDC_LIB_EXT1__ +#if defined(__STDC_LIB_EXT1__) || defined(_MSC_VER) ::strnlen_s #else ::strnlen