From 9c154736fc16b6b14627bd48d637cf502fb0de57 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Mon, 4 Mar 2024 21:53:11 +0100 Subject: [PATCH] Adding conditional compilation for freeBSD @ string utils --- lib/src/gear/string_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/gear/string_utils.h b/lib/src/gear/string_utils.h index 3d70a2d4..fd4f2949 100644 --- a/lib/src/gear/string_utils.h +++ b/lib/src/gear/string_utils.h @@ -134,7 +134,7 @@ static inline std::string &stringRightTrim(std::string& s) { std::find_if( s.rbegin(), s.rend(), -#ifdef __APPLE__ +#if defined(__APPLE__) || defined(__FreeBSD__) [](int c) {return !std::isspace(c);} ).base(), #else