diff --git a/src/gui/platform/macos/qcocoanativeinterface.mm b/src/gui/platform/macos/qcocoanativeinterface.mm index c075a07e663..f9d5f5dbe56 100644 --- a/src/gui/platform/macos/qcocoanativeinterface.mm +++ b/src/gui/platform/macos/qcocoanativeinterface.mm @@ -50,13 +50,14 @@ QT_BEGIN_NAMESPACE using namespace QNativeInterface::Private; +QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaWindow); +QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenu); +QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenuBar); + #ifndef QT_NO_OPENGL QT_DEFINE_NATIVE_INTERFACE(QCocoaGLContext, QOpenGLContext); QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaGLIntegration); -QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaWindow); -QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenu); -QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QCocoaMenuBar); QOpenGLContext *QNativeInterface::QCocoaGLContext::fromNative(NSOpenGLContext *nativeContext, QOpenGLContext *shareContext) {