diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.h b/src/plugins/platforms/cocoa/qcocoahelpers.h index bb187c9fa75..1ef62e1323b 100644 --- a/src/plugins/platforms/cocoa/qcocoahelpers.h +++ b/src/plugins/platforms/cocoa/qcocoahelpers.h @@ -193,7 +193,7 @@ constexpr backwards_t backwards(R&& r) { return {std::forward(r)}; } // ------------------------------------------------------------------------- -#if !defined(Q_PROCESSOR_X86_64) +#if QT_POINTER_SIZE == 4 #error "32-bit builds are not supported" #endif diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.mm b/src/plugins/platforms/cocoa/qcocoahelpers.mm index 6c21d1a3743..cad5979e0fd 100644 --- a/src/plugins/platforms/cocoa/qcocoahelpers.mm +++ b/src/plugins/platforms/cocoa/qcocoahelpers.mm @@ -370,10 +370,6 @@ QString qt_mac_removeAmpersandEscapes(QString s) // ------------------------------------------------------------------------- -#if !defined(Q_PROCESSOR_X86_64) -#error "32-bit builds are not supported" -#endif - QOperatingSystemVersion QMacVersion::buildSDK(VersionTarget target) { switch (target) {