Skip to content

Commit

Permalink
regex and mutex types for qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
benapetr committed Jul 18, 2024
1 parent cfbc37f commit 9570082
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/huggle_core/definitions_prod.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,11 @@ namespace std { typedef decltype(nullptr) nullptr_t; }
#include <QObject>

#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
Expand Down

0 comments on commit 9570082

Please sign in to comment.