diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-11-16 16:01:13 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-11-19 16:05:54 +0100 |
commit | 38207a31e41b8cb3f3978c1ccbe10c6467f85c51 (patch) | |
tree | 809519382feb6373b946eb082dca7295193bd18d /cpukit/libmisc/shell/hexdump-conv.c | |
parent | bsp/lpc32xx: Fix linker command file (diff) | |
download | rtems-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-conv.c')
-rw-r--r-- | cpukit/libmisc/shell/hexdump-conv.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cpukit/libmisc/shell/hexdump-conv.c b/cpukit/libmisc/shell/hexdump-conv.c index d37c6d988a..aa16f9b169 100644 --- a/cpukit/libmisc/shell/hexdump-conv.c +++ b/cpukit/libmisc/shell/hexdump-conv.c @@ -31,6 +31,10 @@ * SUCH DAMAGE. */ +#ifdef __rtems__ +/* For wcwidth() visibility */ +#define _GNU_SOURCE +#endif /* __rtems__ */ #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -39,9 +43,6 @@ #ifndef lint static const char sccsid[] = "@(#)conv.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ -#else /* __rtems__ */ -/* For wcwidth() visibility */ -#define _GNU_SOURCE #endif /* __rtems__ */ #include <sys/cdefs.h> __FBSDID("$FreeBSD: src/usr.bin/hexdump/conv.c,v 1.9 2006/07/31 14:17:04 jkoshy Exp $"); |