summaryrefslogtreecommitdiff
path: root/include/SDL_stdinc.h
diff options
context:
space:
mode:
authorOzkan Sezer <sezeroz@gmail.com>2020-10-29 20:00:20 +0300
committerOzkan Sezer <sezeroz@gmail.com>2020-10-29 20:00:20 +0300
commitf2bc9c2d0e1dd17344657e1194b9d5559e1fc59b (patch)
tree76744cd761d47a6518c9024d3249a8d8d263e3fa /include/SDL_stdinc.h
parente827eb3d88ab27ec4a775ffa352684c8b531b7c5 (diff)
downloadsdl-f2bc9c2d0e1dd17344657e1194b9d5559e1fc59b.tar.gz
SDL_stdinc.h: define _DARWIN_C_SOURCE on macOS for memset_pattern4()
hopefully fixes https://bugzilla.libsdl.org/show_bug.cgi?id=5107
Diffstat (limited to 'include/SDL_stdinc.h')
-rw-r--r--include/SDL_stdinc.h4
1 files changed, 4 insertions, 0 deletions
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 <sys/types.h>
#endif