From 38207a31e41b8cb3f3978c1ccbe10c6467f85c51 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 16 Nov 2019 16:01:13 +0100 Subject: Move feature macro before "config.h" include This allows to use header includes in "config.h" to reduce the build configuration checks. Update #3818. --- cpukit/libmisc/shell/hexdump-odsyntax.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpukit/libmisc/shell/hexdump-odsyntax.c') diff --git a/cpukit/libmisc/shell/hexdump-odsyntax.c b/cpukit/libmisc/shell/hexdump-odsyntax.c index 8da2a34794..e3c4f3cf64 100644 --- a/cpukit/libmisc/shell/hexdump-odsyntax.c +++ b/cpukit/libmisc/shell/hexdump-odsyntax.c @@ -31,6 +31,10 @@ * SUCH DAMAGE. */ +#ifdef __rtems__ +/* For asprintf() visibility */ +#define _GNU_SOURCE +#endif /* __rtems__ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -39,10 +43,6 @@ #if 0 static char sccsid[] = "@(#)odsyntax.c 8.2 (Berkeley) 5/4/95"; #endif /* not lint */ -#ifdef __rtems__ -/* For asprintf() visibility */ -#define _GNU_SOURCE -#endif /* __rtems__ */ #include __FBSDID("$FreeBSD: src/usr.bin/hexdump/odsyntax.c,v 1.17 2004/07/22 13:14:42 johan Exp $"); #endif -- cgit v1.2.3