i18n: Check for non-POSIX strtol_l.
* configure.ac: Check for strtol_l. * libguile/i18n.c: Check HAVE_STRTOL_L before using strtol_l.
This commit is contained in:
parent
96b299045f
commit
7413430fd7
2 changed files with 4 additions and 3 deletions
|
|
@ -1373,7 +1373,7 @@ SCM_DEFINE (scm_locale_string_to_integer, "locale-string->integer",
|
|||
|
||||
if (c_locale != NULL)
|
||||
{
|
||||
#ifdef USE_GNU_LOCALE_API
|
||||
#if defined(USE_GNU_LOCALE_API) && defined(HAVE_STRTOL_L)
|
||||
c_result = strtol_l (c_str, &c_endptr, c_base, c_locale);
|
||||
#else
|
||||
RUN_IN_LOCALE_SECTION (c_locale,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue