From 66bf929fa97fabb70198455f9eec2e9ccf0661fa Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 16 Dec 2013 16:21:50 +0800 Subject: configure: Use AC_GNU_SOURCE Rather than #defining _GNU_SOURCE in our .c files, we can define this from config.h instead. Signed-off-by: Jeremy Kerr --- ui/common/joystick.c | 1 - ui/common/ps3.c | 4 +++- ui/common/timer.c | 1 - ui/common/ui-system.c | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'ui/common') diff --git a/ui/common/joystick.c b/ui/common/joystick.c index 4faf8b6..455ff19 100644 --- a/ui/common/joystick.c +++ b/ui/common/joystick.c @@ -20,7 +20,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include #include #include diff --git a/ui/common/ps3.c b/ui/common/ps3.c index d3ca6d6..c9b97b5 100644 --- a/ui/common/ps3.c +++ b/ui/common/ps3.c @@ -16,7 +16,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define _GNU_SOURCE +#if defined(HAVE_CONFIG_H) +#include "config.h" +#endif #include #include diff --git a/ui/common/timer.c b/ui/common/timer.c index 3c1e833..3d80898 100644 --- a/ui/common/timer.c +++ b/ui/common/timer.c @@ -20,7 +20,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include #include #include diff --git a/ui/common/ui-system.c b/ui/common/ui-system.c index 9ab8dec..7e04801 100644 --- a/ui/common/ui-system.c +++ b/ui/common/ui-system.c @@ -16,7 +16,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#define _GNU_SOURCE +#if defined(HAVE_CONFIG_H) +#include "config.h" +#endif #include #include -- cgit v1.2.1