Commit 5c150ddc2f2a95af6ca78a2c91376e03fd6a97e3

Anonymous Maarten 2022-10-06T02:21:49

SDL_mslibc.c: fix unknown pragma ignored [-Wunknown-pragmas] Emitted by clang-cl

diff --git a/src/stdlib/SDL_mslibc.c b/src/stdlib/SDL_mslibc.c
index 37aa009..02eeb0f 100644
--- a/src/stdlib/SDL_mslibc.c
+++ b/src/stdlib/SDL_mslibc.c
@@ -44,7 +44,9 @@ __declspec(selectany) int _fltused = 1;
 extern void *memcpy(void* dst, const void* src, size_t len);
 #pragma intrinsic(memcpy)
 
+#if !defined(__clang__)
 #pragma function(memcpy)
+#endif
 void *
 memcpy(void *dst, const void *src, size_t len)
 {
@@ -54,7 +56,9 @@ memcpy(void *dst, const void *src, size_t len)
 extern void *memset(void* dst, int c, size_t len);
 #pragma intrinsic(memset)
 
+#if !defined(__clang__)
 #pragma function(memset)
+#endif
 void *
 memset(void *dst, int c, size_t len)
 {