The CI reports a compilation error on MSVC:

D:\a\ci-testdir-check\ci-testdir-check\testdir-all\gltests\test-strcasecmp.c(22):
 error C2065: 'strcasecmp': undeclared identifier

This patch fixes it.


2025-02-17  Bruno Haible  <br...@clisp.org>

        strcasecmp, strncasecmp: Fix compilation error on MSVC.
        * modules/strcasecmp (configure.ac): Invoke gl_STRINGS_MODULE_INDICATOR.
        * modules/strncasecmp (configure.ac): Likewise.

diff --git a/modules/strcasecmp b/modules/strcasecmp
index 34d3050374..f44786b83f 100644
--- a/modules/strcasecmp
+++ b/modules/strcasecmp
@@ -15,6 +15,7 @@ gl_CONDITIONAL([GL_COND_OBJ_STRCASECMP],
 AM_COND_IF([GL_COND_OBJ_STRCASECMP], [
   gl_PREREQ_STRCASECMP
 ])
+gl_STRINGS_MODULE_INDICATOR([strcasecmp])
 
 Makefile.am:
 if GL_COND_OBJ_STRCASECMP
diff --git a/modules/strncasecmp b/modules/strncasecmp
index 816cd0fae6..e617c93bdf 100644
--- a/modules/strncasecmp
+++ b/modules/strncasecmp
@@ -16,6 +16,7 @@ gl_CONDITIONAL([GL_COND_OBJ_STRNCASECMP],
 AM_COND_IF([GL_COND_OBJ_STRNCASECMP], [
   gl_PREREQ_STRNCASECMP
 ])
+gl_STRINGS_MODULE_INDICATOR([strncasecmp])
 
 Makefile.am:
 if GL_COND_OBJ_STRNCASECMP




Reply via email to