diff --git a/gddebug.cc b/gddebug.cc index 7c08f5c0..df57aa5d 100644 --- a/gddebug.cc +++ b/gddebug.cc @@ -1,9 +1,13 @@ /* This file is (c) 2013 Abs62 * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */ -#include #include #include "gddebug.hh" +#if(QT_VERSION >= QT_VERSION_CHECK(6,0,0)) +#include +#else +#include +#endif QFile * logFilePtr; static QTextCodec * utf8Codec; diff --git a/indexedzip.cc b/indexedzip.cc index 4ccc4d50..c5b77713 100644 --- a/indexedzip.cc +++ b/indexedzip.cc @@ -9,7 +9,9 @@ #include "iconv.hh" #include "wstring_qt.hh" #if (QT_VERSION >= QT_VERSION_CHECK(6,0,0)) -#include +#include +#else +#include #endif #include diff --git a/mdictparser.cc b/mdictparser.cc index ae6039cd..dee23a45 100644 --- a/mdictparser.cc +++ b/mdictparser.cc @@ -32,8 +32,11 @@ #include #include #include +#if (QT_VERSION >= QT_VERSION_CHECK(6,0,0)) +#include +#else #include - +#endif #include "decompress.hh" #include "gddebug.hh" #include "ripemd.hh"