summaryrefslogtreecommitdiff
path: root/cpukit/libc/string/local.h
blob: d160c8018b840125e3c8eda11f37cc007a745676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
 * @file
 *
 * @ingroup libcsupport
 *
 * @brief This header file provides interfaces of the
 *   C lib.
 */

#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