Skip to content

Commit

Permalink
Merge pull request #218 from k3DW/deprecated-declarations
Browse files Browse the repository at this point in the history
Fix deprecated-declarations error on clang-win
  • Loading branch information
jzmaddock authored Aug 24, 2024
2 parents bd821cd + d3697ab commit 5243906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wide_posix_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 5243906

Please sign in to comment.