summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/hexdump-odsyntax.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-16 16:01:13 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-11-19 16:05:54 +0100
commit38207a31e41b8cb3f3978c1ccbe10c6467f85c51 (patch)
tree809519382feb6373b946eb082dca7295193bd18d /cpukit/libmisc/shell/hexdump-odsyntax.c
parentbsp/lpc32xx: Fix linker command file (diff)
downloadrtems-38207a31e41b8cb3f3978c1ccbe10c6467f85c51.tar.bz2
Move feature macro before "config.h" include
This allows to use header includes in "config.h" to reduce the build configuration checks. Update #3818.
Diffstat (limited to 'cpukit/libmisc/shell/hexdump-odsyntax.c')
-rw-r--r--cpukit/libmisc/shell/hexdump-odsyntax.c8
1 files changed, 4 insertions, 4 deletions
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 <sys/cdefs.h>
__FBSDID("$FreeBSD: src/usr.bin/hexdump/odsyntax.c,v 1.17 2004/07/22 13:14:42 johan Exp $");
#endif