From b13c610f50c714873987d8c4f30f50953ade9aba Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Wed, 10 Jan 2024 10:40:56 +0100 Subject: Don't include windows.h in the public qopengl.h header All we need are the APIENTRY and WINGDIAPI macros, as those are used in the gl.h header. Define those locally for the time we need them. Use a QT_APIENTRY macro instead of hijacking APIENTRY for when we declare OpenGL functions with the stdcall calling convention. A few build fixes needed in tests that used Windows types without explicitly including windows.h first, or that (incorrectly) included one of the sub-headers of windows.h (like winuser.h). [ChangeLog][Potentially Source-Incompatible Changes][OpenGL] On Windows, the public qopengl.h header no longer includes windows.h. Pick-to: 6.7 Fixes: QTBUG-120687 Change-Id: I3770ac8eaeee5bcf4e7234e5a2539935a8aa5a7d Reviewed-by: Oliver Wolff --- tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp') diff --git a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp index 520233bf69..775b9018fd 100644 --- a/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp +++ b/tests/auto/gui/kernel/qclipboard/tst_qclipboard.cpp @@ -23,6 +23,7 @@ # include # include # include +# include #endif class tst_QClipboard : public QObject -- cgit v1.2.3