2009-05-15 19:40:28 +08:00
|
|
|
#include <_ansi.h>
|
2009-06-02 17:41:06 +08:00
|
|
|
#include <../ctype/local.h>
|
2009-05-15 19:40:28 +08:00
|
|
|
|
|
|
|
/* internal function to compute width of wide char. */
|
|
|
|
int _EXFUN (__wcwidth, (wint_t));
|
2009-06-04 03:28:22 +08:00
|
|
|
|
2013-12-11 02:57:30 +08:00
|
|
|
/*
|
|
|
|
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
|
|
|
|
|
|
|
|
|