aboutsummaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-04-08 18:26:37 +0000
committerUlrich Drepper <drepper@redhat.com>2002-04-08 18:26:37 +0000
commit4c93a54ca8c197ab73425db52351f110af795957 (patch)
tree4d87b84ec9a82e416bea685f4894382249c90ea1 /include/stdlib.h
parentfdedb42e5a5a8c1d639892ec29247c994fb89493 (diff)
downloadglibc-4c93a54ca8c197ab73425db52351f110af795957.zip
glibc-4c93a54ca8c197ab73425db52351f110af795957.tar.gz
glibc-4c93a54ca8c197ab73425db52351f110af795957.tar.bz2
For libc itself replace MB_CUR_MAX definition with one accessing the locale data structures directly.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 16f7aa2..55437d4 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -146,6 +146,12 @@ __strtoull_l (__const char * __restrict __nptr, char **__restrict __endptr,
return ____strtoull_l_internal (__nptr, __endptr, __base, 0, __loc);
}
+
+# ifndef NOT_IN_LIBC
+# undef MB_CUR_MAX
+# define MB_CUR_MAX (_NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX))
+# endif
+
#endif
#undef __Need_M_And_C