SDL_stdinc.h: define _DARWIN_C_SOURCE on macOS for memset_pattern4()
authorOzkan Sezer
Thu, 29 Oct 2020 20:00:20 +0300
changeset 14209467540bb2114
parent 14208 1840e9ddf407
child 14210 2b1cce20e59b
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
     1.1 --- a/include/SDL_stdinc.h	Wed Oct 28 14:03:05 2020 +0100
     1.2 +++ b/include/SDL_stdinc.h	Thu Oct 29 20:00:20 2020 +0300
     1.3 @@ -30,6 +30,10 @@
     1.4  
     1.5  #include "SDL_config.h"
     1.6  
     1.7 +#ifdef __APPLE__
     1.8 +#define _DARWIN_C_SOURCE /* for memset_pattern4() */
     1.9 +#endif
    1.10 +
    1.11  #ifdef HAVE_SYS_TYPES_H
    1.12  #include <sys/types.h>
    1.13  #endif