summaryrefslogtreecommitdiff
path: root/cpukit/libc/string/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libc/string/local.h')
-rw-r--r--cpukit/libc/string/local.h22
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
+
+