From d3697ab02385ccb97efde20ed8987cf06989df73 Mon Sep 17 00:00:00 2001 From: Braden Ganetsky Date: Thu, 22 Aug 2024 23:28:28 -0500 Subject: [PATCH] Fix deprecated-declarations error on clang-win --- src/wide_posix_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wide_posix_api.cpp b/src/wide_posix_api.cpp index 993464f86..a6deacb61 100644 --- a/src/wide_posix_api.cpp +++ b/src/wide_posix_api.cpp @@ -169,7 +169,7 @@ BOOST_REGEX_DECL regsize_t BOOST_REGEX_CCALL regerrorW(int code, const regex_tW* { result = std::wcslen(wnames[code]) + 1; if(buf_size >= result) -#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) && !defined(UNDER_CE) +#if (BOOST_WORKAROUND(BOOST_MSVC, >= 1400) && !defined(_WIN32_WCE) && !defined(UNDER_CE)) || (defined(BOOST_CLANG) && defined(_MSC_VER)) ::wcscpy_s(buf, buf_size, wnames[code]); #else std::wcscpy(buf, wnames[code]);