diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2022-09-02 13:26:26 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2022-09-07 14:39:25 +0200 |
commit | 33a12988e2133c1c8d8e6edf94399a8cab773d43 (patch) | |
tree | 7a32fec63f0541bd88b4b7e55a5f992de7b3647f | |
parent | 6bdde5295708df78db45c120d123945447f00232 (diff) |
Guard windows-specific includes with Q_OS_WIN
Change-Id: I0a7c605c55c815c7220024f302f511e302005ab9
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
-rw-r--r-- | tests/auto/corelib/io/qfile/tst_qfile.cpp | 3 | ||||
-rw-r--r-- | tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index cbe46ca041..e8fcb7d9ce 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -22,7 +22,10 @@ #include <private/qabstractfileengine_p.h> #include <private/qfsfileengine_p.h> #include <private/qfilesystemengine_p.h> + +#ifdef Q_OS_WIN #include <QtCore/private/qfunctions_win_p.h> +#endif #include <QtTest/private/qemulationdetector_p.h> diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index d9c2ef10c9..c54d9308c4 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -18,7 +18,9 @@ #include <qpa/qplatformnativeinterface.h> #include <qpa/qplatformintegration.h> #include <qpa/qplatformaccessibility.h> +#ifdef Q_OS_WIN #include <QtCore/private/qfunctions_win_p.h> +#endif #include <QtGui/private/qguiapplication_p.h> #include <QtGui/private/qhighdpiscaling_p.h> |