summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-10-16 14:23:39 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-10-17 18:44:49 +0000
commit170154704d4e33c697b35ada7ccdda9ee899e441 (patch)
treef2d06e297ebfbf41e172c902fd6d544d13a08ab4
parent3e1cf8b0a6330bf6e2a06cbeb0437c6063ebdbc5 (diff)
Add the missing QtGui/qtgui-config.h
QT_NO_OPENGL is defined in qtgui-config.h so we should include it before checking the definition. Fixes: QTBUG-115446 Change-Id: I29b9d7d89fe4c079ca0cf767a1b1a63cc5621623 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 2b6270af24b236dc329b7deab8f0ea9916af2e1a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 192c343582a647cdb918cabfc359c63845e7b996)
-rw-r--r--src/gui/platform/macos/qcocoanativeinterface.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/platform/macos/qcocoanativeinterface.mm b/src/gui/platform/macos/qcocoanativeinterface.mm
index 58c19c7781..cb6acb4496 100644
--- a/src/gui/platform/macos/qcocoanativeinterface.mm
+++ b/src/gui/platform/macos/qcocoanativeinterface.mm
@@ -1,6 +1,7 @@
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+#include <QtGui/qtgui-config.h>
#ifndef QT_NO_OPENGL
# include <QtGui/private/qopenglcontext_p.h>
#endif