From ce9f3173cd7f2777cf08738bca60d5a5bcb3e21c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 26 Nov 2022 05:25:57 -0800 Subject: [PATCH] Only use memset_pattern4() if we have string.h on Apple platforms --- src/stdlib/SDL_stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c index a93ec45acd..d8db1d940d 100644 --- a/src/stdlib/SDL_stdlib.c +++ b/src/stdlib/SDL_stdlib.c @@ -641,7 +641,7 @@ SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len) void * SDL_memset4(void *dst, Uint32 val, size_t dwords) { -#ifdef __APPLE__ +#if defined(__APPLE__) && defined(HAVE_STRING_H) memset_pattern4(dst, &val, dwords * 4); #elif defined(__GNUC__) && defined(__i386__) int u0, u1, u2;