diff options
author | Ludovic Courtès <ludo@gnu.org> | 2009-11-23 22:50:34 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2009-11-23 23:51:02 +0100 |
commit | 414e44412c2ebea80028d56bc80559e854524c6b (patch) | |
tree | e3867695bc81792020355ef6dc5440d6975da567 /lib/vasnprintf.c | |
parent | a270e133f390169b4d621ef139128a2b7ed30372 (diff) | |
download | guile-414e44412c2ebea80028d56bc80559e854524c6b.tar.gz |
Use Gnulib's `locale' module.
* configure.ac: Remove test for <xlocale.h>.
* libguile/i18n.c: Remove conditional <xlocale.h> inclusion on
`HAVE_XLOCALE_H'.
* m4/gnulib-cache.m4: Add `locale' module.
Diffstat (limited to 'lib/vasnprintf.c')
-rw-r--r-- | lib/vasnprintf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index 6495c7c78..aa790ada8 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -261,10 +261,10 @@ decimal_point_char (void) { const char *point; /* Determine it in a multithread-safe way. We know nl_langinfo is - multithread-safe on glibc systems, but is not required to be multithread- - safe by POSIX. sprintf(), however, is multithread-safe. localeconv() - is rarely multithread-safe. */ -# if HAVE_NL_LANGINFO && __GLIBC__ + multithread-safe on glibc systems and MacOS X systems, but is not required + to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. + localeconv() is rarely multithread-safe. */ +# if HAVE_NL_LANGINFO && (__GLIBC__ || (defined __APPLE__ && defined __MACH__)) point = nl_langinfo (RADIXCHAR); # elif 1 char pointbuf[5]; |