aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/_itoa.h8
-rw-r--r--stdio-common/printf-prs.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/stdio-common/_itoa.h b/stdio-common/_itoa.h
index 42bc3400fa..6249adca91 100644
--- a/stdio-common/_itoa.h
+++ b/stdio-common/_itoa.h
@@ -39,8 +39,14 @@ _itoa_word (unsigned long value, char *buflim,
unsigned int base, int upper_case)
{
const char *digits = (upper_case
+#if !defined NOT_IN_libc || defined IS_IN_rtld
? INTUSE(_itoa_upper_digits)
- : INTUSE(_itoa_lower_digits));
+ : INTUSE(_itoa_lower_digits)
+#else
+ ? _itoa_upper_digits
+ : _itoa_lower_digits
+#endif
+ );
switch (base)
{
diff --git a/stdio-common/printf-prs.c b/stdio-common/printf-prs.c
index f0cd75b928..ecbb47d41c 100644
--- a/stdio-common/printf-prs.c
+++ b/stdio-common/printf-prs.c
@@ -23,6 +23,8 @@
#include <wchar.h>
#include <sys/param.h>
+#include "../locale/localeinfo.h"
+
#ifndef COMPILE_WPRINTF
# define CHAR_T char
# define UCHAR_T unsigned char