diff options
author | Sam Lantinga <slouken@libsdl.org> | 2020-11-12 14:34:11 -0800 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2020-11-12 14:34:11 -0800 |
commit | a6d9431543bf6a5420bd36814399d6fe76f1810b (patch) | |
tree | 728e92f36381cb814ff811b91d4065b98a124d23 /src/stdlib | |
parent | 5fdb2b490cfab6bec3d8b6d1074a79bf856f9962 (diff) | |
download | sdl-a6d9431543bf6a5420bd36814399d6fe76f1810b.tar.gz |
Fixed warning when building on Windows
Diffstat (limited to 'src/stdlib')
-rw-r--r-- | src/stdlib/SDL_stdlib.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c index 8d9707e78..5334a512d 100644 --- a/src/stdlib/SDL_stdlib.c +++ b/src/stdlib/SDL_stdlib.c @@ -488,6 +488,9 @@ __declspec(selectany) int _fltused = 1; /* The optimizer on Visual Studio 2005 and later generates memcpy() and memset() calls */ #if _MSC_VER >= 1400 +extern void *memcpy(void* dst, const void* src, size_t len); +#pragma intrinsic(memcpy) + #pragma function(memcpy) void * memcpy(void *dst, const void *src, size_t len) @@ -495,13 +498,16 @@ memcpy(void *dst, const void *src, size_t len) return SDL_memcpy(dst, src, len); } +extern void *memset(void* dst, int c, size_t len); +#pragma intrinsic(memset) + #pragma function(memset) void * memset(void *dst, int c, size_t len) { return SDL_memset(dst, c, len); } -#endif +#endif /* _MSC_VER >= 1400 */ #ifdef _M_IX86 |