Guard qopenglcontext_p.h with QT_NO_OPENGL
Fixes the macos build with the disabled opengl feature.
Include inttypes.h that used to be implicitly included by
qopenglcontext_p.h. It's needed for 'PRId64' macro.
Amends: ef27cc126c
Pick-to: 6.5
Fixes: QTBUG-112656
Change-Id: I970329c4aacc70790f50e1ff3a57ab2aa6f6bff7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
a516a368c2
commit
55f89c76d9
@ -20,7 +20,9 @@
|
||||
#include <QtCore/QScopedPointer>
|
||||
#include <qpa/qplatformintegration.h>
|
||||
#include <QtGui/private/qcoretextfontdatabase_p.h>
|
||||
#include <QtGui/private/qopenglcontext_p.h>
|
||||
#ifndef QT_NO_OPENGL
|
||||
# include <QtGui/private/qopenglcontext_p.h>
|
||||
#endif
|
||||
#include <QtGui/private/qapplekeymapper_p.h>
|
||||
|
||||
Q_FORWARD_DECLARE_OBJC_CLASS(NSToolbar);
|
||||
|
@ -33,12 +33,16 @@
|
||||
#include <QtCore/private/qcore_mac_p.h>
|
||||
#include <QtGui/private/qcoregraphics_p.h>
|
||||
#include <QtGui/private/qmacmimeregistry_p.h>
|
||||
#include <QtGui/private/qopenglcontext_p.h>
|
||||
#ifndef QT_NO_OPENGL
|
||||
# include <QtGui/private/qopenglcontext_p.h>
|
||||
#endif
|
||||
#include <QtGui/private/qrhibackingstore_p.h>
|
||||
#include <QtGui/private/qfontengine_coretext_p.h>
|
||||
|
||||
#include <IOKit/graphics/IOGraphicsLib.h>
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
static void initResources()
|
||||
{
|
||||
Q_INIT_RESOURCE(qcocoaresources);
|
||||
|
Loading…
Reference in New Issue
Block a user