SDL: memset and memcpy are not intrinsic functions in new LLVM-based Intel compiler

From a06046c55ce69370b585109f39e8295d73ae855e Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 23 Mar 2023 01:47:40 +0100
Subject: [PATCH] memset and memcpy are not intrinsic functions in new
 LLVM-based Intel compiler

---
 src/stdlib/SDL_mslibc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/stdlib/SDL_mslibc.c b/src/stdlib/SDL_mslibc.c
index 2d8c9866f03c..0a6a6ac8449a 100644
--- a/src/stdlib/SDL_mslibc.c
+++ b/src/stdlib/SDL_mslibc.c
@@ -38,7 +38,9 @@ __declspec(selectany) int _fltused = 1;
 #if (_MSC_VER >= 1400) && (!defined(_MT) || defined(DLL_EXPORT))
 /* NOLINTNEXTLINE(readability-redundant-declaration) */
 extern void *memcpy(void *dst, const void *src, size_t len);
+#ifndef __INTEL_LLVM_COMPILER
 #pragma intrinsic(memcpy)
+#endif
 
 #if !defined(__clang__)
 #pragma function(memcpy)
@@ -51,7 +53,9 @@ void *memcpy(void *dst, const void *src, size_t len)
 
 /* NOLINTNEXTLINE(readability-redundant-declaration) */
 extern void *memset(void *dst, int c, size_t len);
+#ifndef __INTEL_LLVM_COMPILER
 #pragma intrinsic(memset)
+#endif
 
 #if !defined(__clang__)
 #pragma function(memset)