diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-01-21 14:58:17 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-03-09 16:34:16 +0100 |
commit | df043a0b0bbe116f402a740b74d406e35d8c8e45 (patch) | |
tree | 726893feba493d0bcde5d07b63f5317e03125ee4 /cpukit/libc/string/local.h | |
parent | 40feba6e72453280482b81a862f5b9c76bf49dfb (diff) |
build FIXME No libc.a for pre-qualified only
Diffstat (limited to 'cpukit/libc/string/local.h')
-rw-r--r-- | cpukit/libc/string/local.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/cpukit/libc/string/local.h b/cpukit/libc/string/local.h new file mode 100644 index 0000000000..ef7ba3918f --- /dev/null +++ b/cpukit/libc/string/local.h @@ -0,0 +1,22 @@ +#include <_ansi.h> +#ifndef __rtems__ +#include <../ctype/local.h> +#endif /* __rtems__ */ + +/* internal function to compute width of wide char. */ +int __wcwidth (wint_t); + +/* + Taken from glibc: + Add the compiler optimization to inhibit loop transformation to library + calls. This is used to avoid recursive calls in memset and memmove + default implementations. +*/ +#ifdef _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL +# define __inhibit_loop_to_libcall \ + __attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns"))) +#else +# define __inhibit_loop_to_libcall +#endif + + |