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

@@ -23,8 +23,6 @@
#if SDL_VIDEO_DRIVER_WAYLAND
/* _GNU_SOURCE for pipe2 declaration. */
#define _GNU_SOURCE
#include <fcntl.h>
#include <unistd.h>
#include <limits.h>

View File

@@ -23,10 +23,6 @@
#if SDL_VIDEO_DRIVER_WAYLAND
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include <sys/types.h>
#include <sys/mman.h>
#include <fcntl.h>

View File

@@ -18,10 +18,6 @@
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
*/
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#include "../../SDL_internal.h"
#if SDL_VIDEO_DRIVER_X11