From 75702ffebc742eae892321fe70a944ccb90a5d4f Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 28 May 2015 14:34:38 -0400 Subject: [PATCH] Make sure we have the vsscanf() prototype (thanks, Ozkan!). issue seen with glibc-2.8. Fixes Bugzilla #2721. --- src/stdlib/SDL_string.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stdlib/SDL_string.c b/src/stdlib/SDL_string.c index 5c343bbc52a32..68d88ece054b3 100644 --- a/src/stdlib/SDL_string.c +++ b/src/stdlib/SDL_string.c @@ -23,6 +23,10 @@ #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 */