diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-07-19 23:45:18 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-07-21 04:58:07 +0000 |
commit | 8418a6335b3f8a029f48ee9b0a18500ddc760852 (patch) | |
tree | b5e05638b3dff69c70bdbc48e24f4f7bf223127d /src/corelib/kernel/qcore_mac_p.h | |
parent | 854fdaaf76873a4f5c6d5a5046b35bc8152fcc24 (diff) |
Add a safety check to prevent apps from running on unsupported OSes
Although Qt declares its minimum supported OS version to the compiler
and linker, the OS ignores this information when loading shared
libraries, so instead of failing with a useful error message, the
program will simply crash at runtime. This attempts to bring that
failure as early in the lifecycle as possible, and provide a better
error message as well.
Change-Id: Ic58b44f8895eac718c94e62cad6e2506dbea8a7e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qcore_mac_p.h')
-rw-r--r-- | src/corelib/kernel/qcore_mac_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index 12e9518979..5be8df1a48 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -152,6 +152,8 @@ Q_CORE_EXPORT QChar qt_mac_qtKey2CocoaKey(Qt::Key key); Q_CORE_EXPORT Qt::Key qt_mac_cocoaKey2QtKey(QChar keyCode); #endif +Q_CORE_EXPORT void qt_apple_check_os_version(); + QT_END_NAMESPACE #endif // QCORE_MAC_P_H |