From 01e3c4616f2900d05c3b09cfc6889c8d61c77078 Mon Sep 17 00:00:00 2001 From: Pieter-Jan Briers Date: Tue, 1 Sep 2026 02:10:07 +0200 Subject: [PATCH] global.h MSVC warning fix (#2359) --- include/global.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/global.h b/include/global.h index c16020936e..c559435fa5 100644 --- a/include/global.h +++ b/include/global.h @@ -83,11 +83,15 @@ extern void __dcbf(void*, int); extern void __dcbz(void*, int); extern void __sync(); extern int __abs(int); +#if defined(_MSVC_LANG) && !defined(__clang__) +#define __memcpy memcpy +#else #if defined(__has_builtin) && __has_builtin(__builtin_memcpy) #define __memcpy __builtin_memcpy #else #define __memcpy memcpy #endif +#endif #ifdef __cplusplus } #endif