SDL_mslibc.c: fix unknown pragma ignored [-Wunknown-pragmas]

Emitted by clang-cl
main
Anonymous Maarten 2022-10-06 02:21:49 +02:00 committed by Anonymous Maarten
parent 37beabd11c
commit 5c150ddc2f
1 changed files with 4 additions and 0 deletions

View File

@ -44,7 +44,9 @@ __declspec(selectany) int _fltused = 1;
extern void *memcpy(void* dst, const void* src, size_t len); extern void *memcpy(void* dst, const void* src, size_t len);
#pragma intrinsic(memcpy) #pragma intrinsic(memcpy)
#if !defined(__clang__)
#pragma function(memcpy) #pragma function(memcpy)
#endif
void * void *
memcpy(void *dst, const void *src, size_t len) 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); extern void *memset(void* dst, int c, size_t len);
#pragma intrinsic(memset) #pragma intrinsic(memset)
#if !defined(__clang__)
#pragma function(memset) #pragma function(memset)
#endif
void * void *
memset(void *dst, int c, size_t len) memset(void *dst, int c, size_t len)
{ {