diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2018-11-29 13:37:40 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-11-29 13:37:40 +0000 |
commit | 4054bf1cb233c90f2d9b775e645c50be50807e90 (patch) | |
tree | b5ca8b7ebe5c1e9c42edd14d7ccbc279eada65fd | |
parent | edddae32a7ded7a7a11f060a07957b51d9785b71 (diff) |
ui/cocoa: Specifically check OSX version
We require at least OSX 10.10. Make a specific check for this
and produce a helpful error message, rather than a more obscure
one later when we try to use a function or constant not provided
by the system headers in older versions.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | ui/cocoa.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/cocoa.m b/ui/cocoa.m index 6cf808077a..c401301d1a 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -45,6 +45,10 @@ #define MAC_OS_X_VERSION_10_12 101200 #endif +#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10 +#error QEMU requires at least OSX 10.10 +#endif + /* macOS 10.12 deprecated many constants, #define the new names for older SDKs */ #if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 #define NSEventMaskAny NSAnyEventMask |