From 33a12988e2133c1c8d8e6edf94399a8cab773d43 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Fri, 2 Sep 2022 13:26:26 +0200 Subject: [PATCH] Guard windows-specific includes with Q_OS_WIN Change-Id: I0a7c605c55c815c7220024f302f511e302005ab9 Reviewed-by: Alexandru Croitor --- tests/auto/corelib/io/qfile/tst_qfile.cpp | 3 +++ tests/auto/other/qaccessibility/tst_qaccessibility.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index cbe46ca0413..e8fcb7d9ce4 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -22,7 +22,10 @@ #include #include #include + +#ifdef Q_OS_WIN #include +#endif #include diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index d9c2ef10c93..c54d9308c4c 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -18,7 +18,9 @@ #include #include #include +#ifdef Q_OS_WIN #include +#endif #include #include