mirror of https://github.com/libsdl-org/SDL.git
Only use memset_pattern4() if we have string.h on Apple platforms
This commit is contained in:
parent
bde808cd87
commit
ce9f3173cd
|
|
@ -641,7 +641,7 @@ SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len)
|
||||||
void *
|
void *
|
||||||
SDL_memset4(void *dst, Uint32 val, size_t dwords)
|
SDL_memset4(void *dst, Uint32 val, size_t dwords)
|
||||||
{
|
{
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__) && defined(HAVE_STRING_H)
|
||||||
memset_pattern4(dst, &val, dwords * 4);
|
memset_pattern4(dst, &val, dwords * 4);
|
||||||
#elif defined(__GNUC__) && defined(__i386__)
|
#elif defined(__GNUC__) && defined(__i386__)
|
||||||
int u0, u1, u2;
|
int u0, u1, u2;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue