diff options
Diffstat (limited to 'ui/ncurses')
-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 |
9 files changed, 20 insertions, 20 deletions
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> |