From d48b84ea5375281006b1be46de4bae8be0b8c4ef Mon Sep 17 00:00:00 2001 From: Zhao Yuhang <2546789017@qq.com> Date: Sat, 23 Sep 2023 22:27:56 +0800 Subject: [PATCH] fix linux builds The #if condition was wrongly inverted during the last huge refactor process. Fixes: #286 --- src/core/utils_linux.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/utils_linux.cpp b/src/core/utils_linux.cpp index 86797fe4..7d0ee692 100644 --- a/src/core/utils_linux.cpp +++ b/src/core/utils_linux.cpp @@ -37,11 +37,6 @@ #include #include #if FRAMELESSHELPER_CONFIG(private_qt) -# if __has_include() -# include -# define FRAMELESSHELPER_HAS_X11EXTRAS -# endif // __has_include() -#else // !FRAMELESSHELPER_CONFIG(private_qt) # include # include # if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)) @@ -54,6 +49,11 @@ # include # define FRAMELESSHELPER_HAS_X11EXTRAS # endif // (QT_VERSION >= QT_VERSION_CHECK(6, 2, 0)) +#else // !FRAMELESSHELPER_CONFIG(private_qt) +# if __has_include() +# include +# define FRAMELESSHELPER_HAS_X11EXTRAS +# endif // __has_include() #endif // FRAMELESSHELPER_CONFIG(private_qt) FRAMELESSHELPER_BEGIN_NAMESPACE