Define _GNU_SOURCE when building SDL

This commit is contained in:
Sam Lantinga 2016-11-11 13:14:00 -08:00
parent 302a6e62aa
commit 74e1dd4c6f
8 changed files with 11 additions and 24 deletions

View file

@ -18,15 +18,10 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#if defined(__clang_analyzer__) && !defined(SDL_DISABLE_ANALYZE_MACROS)
#if defined(__clang_analyzer__)
#define SDL_DISABLE_ANALYZE_MACROS 1
#endif
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
#include "../SDL_internal.h"
/* This file contains portable string manipulation functions for SDL */