diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-02-16 14:54:30 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-02-16 14:54:30 +0100 |
commit | d2995f218548fb6e506348377bf150c69dd231a6 (patch) | |
tree | f3947cffa865d6825f1d64a027010b829f2e6182 /libquadmath/config.h.in | |
parent | 5037599a7442f3b528905f13221c8affa5a9f20e (diff) | |
download | gcc-d2995f218548fb6e506348377bf150c69dd231a6.zip gcc-d2995f218548fb6e506348377bf150c69dd231a6.tar.gz gcc-d2995f218548fb6e506348377bf150c69dd231a6.tar.bz2 |
quadmath-printf.c: Also check __GLIBC__ when checking whether workarounds for printf hook handling...
* printf/quadmath-printf.c: Also check __GLIBC__ when checking
whether workarounds for printf hook handling should be added.
* configure.ac: Check for locale.h too.
(USE_LOCALE_SUPPORT): Remove check.
(USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
(USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
* printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
for wide version.
* printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
* printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
(__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
USE_I18N_NUMBER_H #ifdef.
* configure: Regenerated.
* config.h.in: Regenerated.
From-SVN: r170211
Diffstat (limited to 'libquadmath/config.h.in')
-rw-r--r-- | libquadmath/config.h.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libquadmath/config.h.in b/libquadmath/config.h.in index 307da27..38e08c0 100644 --- a/libquadmath/config.h.in +++ b/libquadmath/config.h.in @@ -42,6 +42,9 @@ /* Define to 1 if you have the <limits.h> header file. */ #undef HAVE_LIMITS_H +/* Define to 1 if you have the <locale.h> header file. */ +#undef HAVE_LOCALE_H + /* Define to 1 if you have the <memory.h> header file. */ #undef HAVE_MEMORY_H @@ -115,8 +118,14 @@ /* whether i18n number rewriting can be supported */ #undef USE_I18N_NUMBER_H -/* whether nl_langinfo is sufficiently supported */ -#undef USE_LOCALE_SUPPORT +/* whether localeconv should be used */ +#undef USE_LOCALECONV + +/* whether nl_langinfo should be used */ +#undef USE_NL_LANGINFO + +/* whether nl_langinfo should be used for wide char locale info */ +#undef USE_NL_LANGINFO_WC /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE |