diff options
| author | Werner Koch <[email protected]> | 2018-12-12 09:07:04 +0100 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2018-12-12 09:14:31 +0100 |
| commit | 12349de46d241cfbadbdf99773d6cabfcbc97578 (patch) | |
| tree | b484e5bf0de8ea9889e67232b5a18252b99bc89c /m4 | |
| parent | syscfg: Add a riscv32 architecture (diff) | |
| download | libgpg-error-12349de46d241cfbadbdf99773d6cabfcbc97578.tar.gz libgpg-error-12349de46d241cfbadbdf99773d6cabfcbc97578.zip | |
estream: Use correct POSIX name THOUSEP.
* src/estream-printf.c: Replace HAVE_LANGINFO_THOUSANDS_SEP by
HAVE_LANGINFO_THOUSEP.
(pr_integer): Use THOUSEP.
--
GnuPG-bug-id: 4286
Reported-by: miod
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'm4')
| -rw-r--r-- | m4/estream.m4 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/m4/estream.m4 b/m4/estream.m4 index 402ef74..548fe08 100644 --- a/m4/estream.m4 +++ b/m4/estream.m4 @@ -24,16 +24,16 @@ AC_DEFUN([estream_PRINTF_INIT], AC_CHECK_TYPES([ptrdiff_t]) AC_CHECK_SIZEOF([unsigned long]) AC_CHECK_SIZEOF([void *]) - AC_CACHE_CHECK([for nl_langinfo and THOUSANDS_SEP], - estream_cv_langinfo_thousands_sep, + AC_CACHE_CHECK([for nl_langinfo and THOUSEP], + estream_cv_langinfo_thousep, [AC_TRY_LINK([#include <langinfo.h>], - [char* cs = nl_langinfo(THOUSANDS_SEP); return !cs;], - estream_cv_langinfo_thousands_sep=yes, - estream_cv_langinfo_thousands_sep=no) + [char* cs = nl_langinfo(THOUSEP); return !cs;], + estream_cv_langinfo_thousep=yes, + estream_cv_langinfo_thousep=no) ]) - if test $estream_cv_langinfo_thousands_sep = yes; then - AC_DEFINE(HAVE_LANGINFO_THOUSANDS_SEP, 1, - [Define if you have <langinfo.h> and nl_langinfo(THOUSANDS_SEP).]) + if test $estream_cv_langinfo_thousep = yes; then + AC_DEFINE(HAVE_LANGINFO_THOUSEP, 1, + [Define if you have <langinfo.h> and nl_langinfo(THOUSEP).]) fi ]) |
