[CRT][UCRT][MSVCRT] intrinsic functions: Follow-up of #9157 (#9226)

JIRA issue: CORE-20617
@learn-more found #9157 breaks the build as follows:
> error C2220: the following warning is treated as an error
> warning C4163: 'strncmp': not available as an intrinsic function
> warning C4163: 'strncpy': not available as an intrinsic function
_MSC_VER=1932 was not the version that the intrinsic functions
(strncmp, strncpy, wcsncmp, wcsncpy) added.
Using Compiler Explorer could detect the correct version:
_MSC_VER=1950.
This commit is contained in:
Katayama Hirofumi MZ
2026-06-29 13:48:51 +09:00
committed by GitHub
parent 3dfa23f661
commit 0572d36024
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ 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
#if defined(_M_ARM) || _MSC_VER >= 1950
#pragma function(strncmp,strncpy)
#endif
#endif
+1 -1
View File
@@ -36,7 +36,7 @@ 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
#if defined(_M_ARM) || _MSC_VER >= 1950
#pragma function(wcsncmp,wcsncpy)
#endif
#endif
+1 -1
View File
@@ -2,7 +2,7 @@
#include <stddef.h>
#include <tchar.h>
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1932) // VS2022 version 17.2 and later
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1950)
#pragma function(_tcsncmp)
#endif /* _MSC_VER */
+1 -1
View File
@@ -2,7 +2,7 @@
#include <stddef.h>
#include <tchar.h>
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1932) // VS2022 version 17.2 and later
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1950)
#pragma function(_tcsncpy)
#endif /* _MSC_VER */
+1 -1
View File
@@ -11,7 +11,7 @@
#include <string.h>
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1932) // VS2022 version 17.2 and later
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1950)
#pragma function(strncmp)
#endif
+1 -1
View File
@@ -10,7 +10,7 @@
#include <string.h>
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1932) // VS2022 version 17.2 and later
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1950)
#pragma function(strncpy)
#endif
+1 -1
View File
@@ -19,7 +19,7 @@
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1932) // VS2022 version 17.2 and later
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1950)
#pragma function(wcsncmp)
#endif
+1 -1
View File
@@ -12,7 +12,7 @@
#pragma warning(disable:__WARNING_POSTCONDITION_NULLTERMINATION_VIOLATION) // 26036
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1932) // VS2022 version 17.2 and later
#if defined(_MSC_VER) && (defined(_M_ARM) || _MSC_VER >= 1950)
#pragma function(wcsncpy)
#endif