From 8390b610401f42d239eee3390052cf685f47335d Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Thu, 24 May 2018 22:49:48 +0200 Subject: qtestoptions_p: Restore compatibility with older Qt This isn't mandatory to keep forever, but having the ability to run newer qtdeclarative against older qtbase is nice, if there haven't been gigantic changes, e.g. for bisecting's sake or partial upgrades. Change-Id: Ia4de4b0cc5092619e2d9f661bb7f43da690a0fdf Reviewed-by: Friedemann Kleint Reviewed-by: Ulf Hermann --- src/qmltest/qtestoptions_p.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/qmltest') diff --git a/src/qmltest/qtestoptions_p.h b/src/qmltest/qtestoptions_p.h index 68fe09f793..7be5c88590 100644 --- a/src/qmltest/qtestoptions_p.h +++ b/src/qmltest/qtestoptions_p.h @@ -51,7 +51,11 @@ // We mean it. // -#include +#if QT_VERSION < QT_VERSION_CHECK(5, 11, 0) +# include +#else +# include +#endif #include #include -- cgit v1.2.3