From 79221e85a00ee4d57563319cb6e8af936282cf3e Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 29 Oct 2020 20:00:20 +0300 Subject: [PATCH] SDL_stdinc.h: define _DARWIN_C_SOURCE on macOS for memset_pattern4() hopefully fixes https://bugzilla.libsdl.org/show_bug.cgi?id=5107 --- include/SDL_stdinc.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index a79354c80..97e187f43 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -30,6 +30,10 @@ #include "SDL_config.h" +#ifdef __APPLE__ +#define _DARWIN_C_SOURCE /* for memset_pattern4() */ +#endif + #ifdef HAVE_SYS_TYPES_H #include #endif