diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2013-12-16 16:21:50 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2013-12-18 10:19:21 +0800 |
commit | 66bf929fa97fabb70198455f9eec2e9ccf0661fa (patch) | |
tree | df9944b43cb30900f4947c7b1ea7e777d16b0d19 /ui | |
parent | df46fcfe4867fd16729bb10dfb82dcd43595c6c2 (diff) | |
download | petitboot-66bf929fa97fabb70198455f9eec2e9ccf0661fa.zip petitboot-66bf929fa97fabb70198455f9eec2e9ccf0661fa.tar.gz |
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 <jk@ozlabs.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/common/joystick.c | 1 | ||||
-rw-r--r-- | ui/common/ps3.c | 4 | ||||
-rw-r--r-- | ui/common/timer.c | 1 | ||||
-rw-r--r-- | ui/common/ui-system.c | 4 | ||||
-rw-r--r-- | ui/ncurses/generic-main.c | 4 | ||||
-rw-r--r-- | ui/ncurses/nc-boot-editor.c | 4 | ||||
-rw-r--r-- | ui/ncurses/nc-config.c | 5 | ||||
-rw-r--r-- | ui/ncurses/nc-cui.c | 4 | ||||
-rw-r--r-- | ui/ncurses/nc-menu.c | 4 | ||||
-rw-r--r-- | ui/ncurses/nc-scr.c | 4 | ||||
-rw-r--r-- | ui/ncurses/nc-sysinfo.c | 6 | ||||
-rw-r--r-- | ui/ncurses/nc-widgets.c | 5 | ||||
-rw-r--r-- | ui/ncurses/ps3-main.c | 4 | ||||
-rw-r--r-- | ui/twin/main-generic.c | 1 | ||||
-rw-r--r-- | ui/twin/main-ps3.c | 1 | ||||
-rw-r--r-- | ui/twin/pbt-client.c | 1 | ||||
-rw-r--r-- | ui/twin/pbt-main.c | 1 | ||||
-rw-r--r-- | ui/twin/pbt-menu.c | 1 | ||||
-rw-r--r-- | ui/twin/pbt-scr.c | 4 |
19 files changed, 29 insertions, 30 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> diff --git a/ui/ncurses/generic-main.c b/ui/ncurses/generic-main.c index feff506..aa5c2a5 100644 --- a/ui/ncurses/generic-main.c +++ b/ui/ncurses/generic-main.c @@ -18,9 +18,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" - -#define _GNU_SOURCE +#endif #include <assert.h> #include <errno.h> diff --git a/ui/ncurses/nc-boot-editor.c b/ui/ncurses/nc-boot-editor.c index 57cc0dc..90bd003 100644 --- a/ui/ncurses/nc-boot-editor.c +++ b/ui/ncurses/nc-boot-editor.c @@ -16,9 +16,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" - -#define _GNU_SOURCE +#endif #include <assert.h> #include <string.h> diff --git a/ui/ncurses/nc-config.c b/ui/ncurses/nc-config.c index 6c25260..0b42e4c 100644 --- a/ui/ncurses/nc-config.c +++ b/ui/ncurses/nc-config.c @@ -15,7 +15,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 <errno.h> #include <stdlib.h> @@ -26,7 +28,6 @@ #include <types/types.h> #include <log/log.h> -#include "config.h" #include "nc-cui.h" #include "nc-config.h" #include "nc-widgets.h" diff --git a/ui/ncurses/nc-cui.c b/ui/ncurses/nc-cui.c index 9427e4a..e342273 100644 --- a/ui/ncurses/nc-cui.c +++ b/ui/ncurses/nc-cui.c @@ -16,9 +16,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" - -#define _GNU_SOURCE +#endif #include <assert.h> #include <errno.h> diff --git a/ui/ncurses/nc-menu.c b/ui/ncurses/nc-menu.c index eb7cfdf..d2048e1 100644 --- a/ui/ncurses/nc-menu.c +++ b/ui/ncurses/nc-menu.c @@ -16,9 +16,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" - -#define _GNU_SOURCE +#endif #include <assert.h> #include <errno.h> diff --git a/ui/ncurses/nc-scr.c b/ui/ncurses/nc-scr.c index 9ad356f..41e35de 100644 --- a/ui/ncurses/nc-scr.c +++ b/ui/ncurses/nc-scr.c @@ -16,9 +16,9 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" - -#define _GNU_SOURCE +#endif #include <assert.h> #include <stdarg.h> diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index fb1954f..1a3d3f5 100644 --- a/ui/ncurses/nc-sysinfo.c +++ b/ui/ncurses/nc-sysinfo.c @@ -15,8 +15,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 <string.h> @@ -25,7 +26,6 @@ #include <log/log.h> #include <util/util.h> -#include "config.h" #include "nc-cui.h" #include "nc-sysinfo.h" diff --git a/ui/ncurses/nc-widgets.c b/ui/ncurses/nc-widgets.c index a6773cd..60f9100 100644 --- a/ui/ncurses/nc-widgets.c +++ b/ui/ncurses/nc-widgets.c @@ -15,9 +15,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 <linux/input.h> /* This must be included before ncurses.h */ #if defined HAVE_NCURSESW_CURSES_H @@ -52,7 +52,6 @@ #include <log/log.h> #include <util/util.h> -#include "config.h" #include "nc-cui.h" #include "nc-widgets.h" diff --git a/ui/ncurses/ps3-main.c b/ui/ncurses/ps3-main.c index 1269549..7bded78 100644 --- a/ui/ncurses/ps3-main.c +++ b/ui/ncurses/ps3-main.c @@ -24,9 +24,9 @@ * ncurses mouse support */ +#if defined(HAVE_CONFIG_H) #include "config.h" - -#define _GNU_SOURCE +#endif #include <assert.h> #include <errno.h> diff --git a/ui/twin/main-generic.c b/ui/twin/main-generic.c index 2301e31..8ddec9e 100644 --- a/ui/twin/main-generic.c +++ b/ui/twin/main-generic.c @@ -21,7 +21,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include <assert.h> #include <errno.h> #include <getopt.h> diff --git a/ui/twin/main-ps3.c b/ui/twin/main-ps3.c index 138cd28..ba4b1d7 100644 --- a/ui/twin/main-ps3.c +++ b/ui/twin/main-ps3.c @@ -21,7 +21,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include <assert.h> #include <errno.h> #include <getopt.h> diff --git a/ui/twin/pbt-client.c b/ui/twin/pbt-client.c index 21ed524..a4ad0e9 100644 --- a/ui/twin/pbt-client.c +++ b/ui/twin/pbt-client.c @@ -19,7 +19,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include <assert.h> #include <string.h> diff --git a/ui/twin/pbt-main.c b/ui/twin/pbt-main.c index 542f949..cf54662 100644 --- a/ui/twin/pbt-main.c +++ b/ui/twin/pbt-main.c @@ -19,7 +19,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include <stdio.h> #include <getopt.h> diff --git a/ui/twin/pbt-menu.c b/ui/twin/pbt-menu.c index 844b1e1..65651ca 100644 --- a/ui/twin/pbt-menu.c +++ b/ui/twin/pbt-menu.c @@ -19,7 +19,6 @@ #include "config.h" #endif -#define _GNU_SOURCE #include <assert.h> #include <string.h> #include <linux/input.h> diff --git a/ui/twin/pbt-scr.c b/ui/twin/pbt-scr.c index 79f6792..b774f19 100644 --- a/ui/twin/pbt-scr.c +++ b/ui/twin/pbt-scr.c @@ -15,8 +15,10 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if defined(HAVE_CONFIG_H) #include "config.h" -#define _GNU_SOURCE +#endif + #include <assert.h> #include <string.h> |