]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid false localeconv_used_without_requesting_gnulib_module_localeconv.
authorBruno Haible <bruno@clisp.org>
Wed, 24 Jul 2024 21:56:33 +0000 (23:56 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Aug 2024 16:00:50 +0000 (18:00 +0200)
* modules/localeconv (configure.ac): Invoke gl_MODULE_INDICATOR.
* lib/locale.in.h (localeconv): Don't define to
localeconv_used_without_requesting_gnulib_module_localeconv if the
gnulib module 'localeconv' is in use under the same configure.ac.

ChangeLog
lib/locale.in.h
modules/localeconv

index db387774f59635d6ac2abd4eedfcb7b0020c2fad..dd3087ad716c2d0b39474db90bfb64af611bb1ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2024-07-24  Bruno Haible  <bruno@clisp.org>
 
+       Avoid false localeconv_used_without_requesting_gnulib_module_localeconv.
+       * modules/localeconv (configure.ac): Invoke gl_MODULE_INDICATOR.
+       * lib/locale.in.h (localeconv): Don't define to
+       localeconv_used_without_requesting_gnulib_module_localeconv if the
+       gnulib module 'localeconv' is in use under the same configure.ac.
+
        Avoid false gethostname_used_without_requesting_gnulib_module_gethostname.
        * modules/gethostname (configure.ac): Invoke gl_MODULE_INDICATOR.
        * lib/unistd.in.h (gethostname): Don't define to
index 1b11a41c4df3bd42cc20e83d4ddcb34c3674afe6..db9ae8bb2080424f2226c8065f0a71ae4bf563ce 100644 (file)
@@ -177,8 +177,10 @@ _GL_CXXALIAS_SYS (localeconv, struct lconv *, (void));
 _GL_CXXALIASWARN (localeconv);
 # endif
 #elif @REPLACE_STRUCT_LCONV@
-# undef localeconv
-# define localeconv localeconv_used_without_requesting_gnulib_module_localeconv
+# if !GNULIB_LOCALECONV
+#  undef localeconv
+#  define localeconv localeconv_used_without_requesting_gnulib_module_localeconv
+# endif
 #elif defined GNULIB_POSIXCHECK
 # undef localeconv
 # if HAVE_RAW_DECL_LOCALECONV
index 04ac36ed792882acd2a7967e32183b6584166ab2..3f22cafa3609257ae2a5a42e7f2ab52efb3334eb 100644 (file)
@@ -16,6 +16,7 @@ AM_COND_IF([GL_COND_OBJ_LOCALECONV], [
   gl_PREREQ_LOCALECONV
 ])
 gl_LOCALE_MODULE_INDICATOR([localeconv])
+gl_MODULE_INDICATOR([localeconv])
 
 Makefile.am:
 if GL_COND_OBJ_LOCALECONV