Browse Source

Make sure we have the vsscanf() prototype (thanks, Ozkan!).

issue seen with glibc-2.8.

Fixes Bugzilla #2721.
Ryan C. Gordon 11 năm trước cách đây
mục cha
commit
75702ffebc
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      src/stdlib/SDL_string.c

+ 4 - 0
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 */