From 750a3f2c3d8b32138c5870d54277df4c1277321b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Sun, 6 Apr 2025 21:31:03 -0400
Subject: [PATCH] utf8_utils: enable OPTIMIZE

Change-Id: I78dc58bd3c626b212f0527bb21efbd689cf93802
---
 src/connectivity/utf8_utils.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/connectivity/utf8_utils.cpp b/src/connectivity/utf8_utils.cpp
index 88f84da728..32863786b8 100644
--- a/src/connectivity/utf8_utils.cpp
+++ b/src/connectivity/utf8_utils.cpp
@@ -33,7 +33,7 @@ using ssize_t = SSIZE_T;
  * the compiler about the expected result of an expression. Some compilers
  * can use this information for optimizations.
  */
-#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)
+#if defined(__GNUC__) && (__GNUC__ > 2) || defined(__clang__)
 #define LIKELY(expr)   (__builtin_expect(expr, 1))
 #define UNLIKELY(expr) (__builtin_expect(expr, 0))
 #else
-- 
GitLab