summaryrefslogtreecommitdiffstats
path: root/ui/common
diff options
context:
space:
mode:
Diffstat (limited to 'ui/common')
-rw-r--r--ui/common/joystick.c1
-rw-r--r--ui/common/ps3.c4
-rw-r--r--ui/common/timer.c1
-rw-r--r--ui/common/ui-system.c4
4 files changed, 6 insertions, 4 deletions
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 <assert.h>
#include <errno.h>
#include <fcntl.h>
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 <assert.h>
#include <errno.h>
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 <assert.h>
#include <limits.h>
#include <unistd.h>
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 <assert.h>
#include <errno.h>
OpenPOWER on IntegriCloud