summaryrefslogtreecommitdiff
path: root/cpukit/libc/string/local.h
blob: ef7ba3918f51a6845c0d73b0639ae297d2a93012 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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