From 6d14efc20ff7c1746417146263a8cbba72094422 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 31 Dec 2025 08:35:00 +0100 Subject: [PATCH] string: fix to compile with Xcode Signed-off-by: Simon Rozman --- include/stdex/string.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/stdex/string.hpp b/include/stdex/string.hpp index b490f9f31..96f999517 100644 --- a/include/stdex/string.hpp +++ b/include/stdex/string.hpp @@ -1,4 +1,4 @@ -/* +/* SPDX-License-Identifier: MIT Copyright © 2016-2025 Amebis */ @@ -1107,6 +1107,7 @@ namespace stdex return 0; } +#ifdef _WIN32 /// /// Binary compare two strings /// @@ -1125,6 +1126,7 @@ namespace stdex reinterpret_cast(str1), count1, reinterpret_cast(str2), count2); } +#endif /// /// Binary compare two strings @@ -1142,6 +1144,7 @@ namespace stdex return strncmp(str1, N1, str2, N2); } +#ifdef _WIN32 /// /// Binary compare two strings /// @@ -1159,6 +1162,7 @@ namespace stdex reinterpret_cast(str1), N1, reinterpret_cast(str2), N2); } +#endif /// /// Binary compare two strings in reverse direction