From 9570082eb56cbf9bf2bd772aa3289d4bef9a7677 Mon Sep 17 00:00:00 2001 From: Petr Bena Date: Thu, 18 Jul 2024 21:42:17 +0200 Subject: [PATCH] regex and mutex types for qt6 --- src/huggle_core/definitions_prod.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/huggle_core/definitions_prod.hpp b/src/huggle_core/definitions_prod.hpp index 32b7449bc..cfea3e4ef 100644 --- a/src/huggle_core/definitions_prod.hpp +++ b/src/huggle_core/definitions_prod.hpp @@ -105,9 +105,11 @@ namespace std { typedef decltype(nullptr) nullptr_t; } #include #ifdef QT6_BUILD -#define HMUTEX_TYPE QRecursiveMutex + #define HMUTEX_TYPE QRecursiveMutex + #define HREGEX_TYPE QRegularExpression #else -#define HMUTEX_TYPE QMutex + #define HMUTEX_TYPE QMutex + #define HREGEX_TYPE QRegEx #endif #if QT_VERSION >= 0x050000