fix bug #5394 - define _DARWIN_C_SOURCE only if not already defined

This commit is contained in:
Ozkan Sezer 2020-12-12 23:28:10 +03:00
parent 5c212cb0c5
commit bca9decbda
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@
#include "SDL_config.h"
#ifdef __APPLE__
#define _DARWIN_C_SOURCE /* for memset_pattern4() */
#ifndef _DARWIN_C_SOURCE
#define _DARWIN_C_SOURCE 1 /* for memset_pattern4() */
#endif
#endif
#ifdef HAVE_SYS_TYPES_H