]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
map-c++-tests: Fix compilation error (regression 2025-09-17).
authorBruno Haible <bruno@clisp.org>
Fri, 19 Sep 2025 14:26:52 +0000 (16:26 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 19 Sep 2025 14:26:52 +0000 (16:26 +0200)
* tests/test-map-c++.cc (streq): Remove function.
* modules/map-c++-tests (Depends-on): Add stringeq.

ChangeLog
modules/map-c++-tests
tests/test-map-c++.cc

index 503732632ea540506385ad7d9c015ccae7543bab..ae028184da6fdf744be1b2667316135dbb2090a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-09-19  Bruno Haible  <bruno@clisp.org>
+
+       map-c++-tests: Fix compilation error (regression 2025-09-17).
+       * tests/test-map-c++.cc (streq): Remove function.
+       * modules/map-c++-tests (Depends-on): Add stringeq.
+
 2025-09-18  Bruno Haible  <bruno@clisp.org>
 
        stack-trace: Add support for Oracle DeveloperStudio cc.
index edfbf2823f4f7b2b37e94c786e3f049b84a4f1a7..cccd20d46e65961ce025b580743d819f4cb22184 100644 (file)
@@ -5,6 +5,7 @@ tests/macros.h
 Depends-on:
 ansi-c++-opt
 array-map
+stringeq
 
 configure.ac:
 
index a314bbe7100fece435bbbf5b4e38d55c461863bb..fea10c0c46afac17e0fbbb29c76506459287c409 100644 (file)
 
 static const int integers[6] = { 0, 1, 2, 3, 4, 5 };
 
-static bool
-streq (const char *str1, const char *str2)
-{
-  return strcmp (str1, str2) == 0;
-}
-
 int
 main (int argc, char *argv[])
 {