mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[MSVCRT][CRT][UCRT] Disable intrinsic string functions on MSVC (#9157)
VS2022 version 17.2 and later (`_MSC_VER >= 1932`) added new intrinsic functions (`strncmp`, `strncpy`, `wcsncmp`, and `wcsncpy`). As we implement these ourselves, we have to avoid compiler error C2169. This problem surfaced with a recent GitHub Actions update: https://github.com/actions/runner-images/issues/14017 Use `#pragma function(...)` to disable new intrinsic functions.
This commit is contained in:
@@ -38,6 +38,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma function(_strset,memchr,memcmp,memcpy,memset,strcat,strcmp,strcpy,strlen)
|
||||
#ifdef __REACTOS__
|
||||
#if defined(_M_ARM) || _MSC_VER >= 1932 // VS2022 version 17.2 and later
|
||||
#pragma function(strncmp,strncpy)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*********************************************************************
|
||||
|
||||
@@ -35,6 +35,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(msvcrt);
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma function(_wcsset,wcscat,wcscmp,wcscpy,wcslen)
|
||||
#ifdef __REACTOS__
|
||||
#if defined(_M_ARM) || _MSC_VER >= 1932 // VS2022 version 17.2 and later
|
||||
#pragma function(wcsncmp,wcsncpy)
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
|
||||
Reference in New Issue
Block a user