From fa338df6c1f3984478671dae8d69ec8866e45f34 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 1 Feb 2018 03:15:11 +0300 Subject: Fix compilation with clang. --- src/utils/stringutils.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index cb4bbb332..7bbc3a081 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -136,8 +136,9 @@ int compareStrI(const std::string &a, const std::string &b) A_WARN_UNUSED; /** * Tells wether the character is a word separator. */ -constexpr bool isWordSeparator(const signed char chr) A_CONST A_WARN_UNUSED; -constexpr bool isWordSeparator(const signed char chr) +constexpr inline bool isWordSeparator(const signed char chr) + A_CONST A_WARN_UNUSED; +constexpr inline bool isWordSeparator(const signed char chr) { return chr == ' ' || chr == ',' || -- cgit v1.2.3-70-g09d2