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/string_tests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/string_tests.c') diff --git a/tests/string_tests.c b/tests/string_tests.c index 282927c..f1009f9 100644 --- a/tests/string_tests.c +++ b/tests/string_tests.c @@ -56,7 +56,7 @@ TEST(comparing) { test_assert(ss_eq(ss, ss), "slice is not equal to itself"); test_assert(ss_eq_str(ss, ss.data), "slice is not equal to its C string"); - char *hw = strdup("hello world"); + char *hw = mos_strdup("hello world"); StringSlice ss2 = ss_from_str(hw); test_assert(ss_eq(ss, ss2), "slice is not equal to an equal slice"); test_assert(ss_eq_str(ss, hw), "slice is not equal to an equal string"); -- cgit v1.2.3