acadia-newlib/newlib/libc
Corinna Vinschen bc0e8a9961 stdlib: conditionalize locale usage
_strtod_l as well as the gethex function both fetch the decimal point
from the current LC_NUMERIC locale info.  This pulls in _C_numeric_locale
unconditionally even on targets not supporting locales at all.

Another problem is that strtod.c and gdtoa-gethex.c are ELIX 1, while
locale information in general isn't.  This leads to potential build
breakage on bare metal targets.

Fix this by setting the decimal point to "." on all targets not
defining __HAVE_LOCALE_INFO__.

While at it, const'ify the entire local decimal point info in the
affected functions.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2021-08-23 10:02:00 +02:00
..
argz Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
ctype fix and amend scripts and makefile rules to generate Unicode data 2021-07-06 15:35:37 +02:00
errno Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
iconv Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
include libc: Added prototypes for new POSIX APIs 2021-08-09 10:29:55 +02:00
locale Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
machine aarch64: support binary mode for opening files 2021-05-26 15:17:11 +01:00
misc Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
posix Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
reent Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
search Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
signal libc: Fix compilation for new sig2str/str2sig implementation 2021-08-02 16:42:03 +02:00
ssp Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
stdio svfwscanf: Simplify _sungetwc_r to eliminate apparent buffer overflow 2021-08-18 10:37:24 +02:00
stdio64 Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
stdlib stdlib: conditionalize locale usage 2021-08-23 10:02:00 +02:00
string fix and amend scripts and makefile rules to generate Unicode data 2021-07-06 15:35:37 +02:00
sys libc/sys/rtems/crt0.c: Fix two warnings. 2021-06-17 12:58:36 -05:00
syscalls Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
time Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
unix Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
xdr Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
Makefile.am ssp: add build infrastructure 2017-11-29 11:25:46 -06:00
Makefile.in Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
Makefile.unidata fix and amend scripts and makefile rules to generate Unicode data 2021-07-06 15:35:37 +02:00
aclocal.m4 Fix up errors in regenerated files for 2.3.0 release. 2016-01-04 12:57:31 -05:00
configure Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
configure.in Add build mechanism to share common header files between machines 2021-04-13 12:55:33 +02:00
libc.in.xml ssp: add documentation 2017-11-29 11:25:45 -06:00
libc.texinfo ssp: add documentation 2017-11-29 11:25:45 -06:00
saber Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
sys.tex