mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user