From 7a1f842b91af4f916501eaea991b897e3db4c502 Mon Sep 17 00:00:00 2001 From: Mosder Date: Mon, 28 Sep 2026 13:27:35 +0200 Subject: refactor: prefixed compat functions (and added a macro to libc implementations - if they exist), so they do not take reserved names anymore --- tests/ds/hashmap_tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/ds') diff --git a/tests/ds/hashmap_tests.c b/tests/ds/hashmap_tests.c index 72965b4..bc1a145 100644 --- a/tests/ds/hashmap_tests.c +++ b/tests/ds/hashmap_tests.c @@ -99,7 +99,7 @@ TEST(str_key) { E *hm = hm_new(.key = HM_STR); char *str = "key"; - char *str2 = strdup(str); + char *str2 = mos_strdup(str); hm_put(hm, str, 69); hm_put(hm, "hey", 420); test_assert(hm_get(hm, str2) == 69, "hm_get got value not from hm_put"); @@ -117,7 +117,7 @@ TEST(ss_key) { E *hm = hm_new(.key = HM_SS); char *str = "key"; - char *str2 = strdup(str); + char *str2 = mos_strdup(str); StringSlice ss = ss_from_str(str); StringSlice ss2 = ss_from_str(str2); hm_put(hm, ss, 69); -- cgit v1.2.3