From e1471cbd199522b5b04a24e8dcb1b2549e22369b Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Thu, 4 Jul 2019 20:43:11 +0800 Subject: [PATCH] Fix building on Mac OS X < 10.12 This patch is inspired by a compatibility header in old WebKit. See https://github.com/WebKit/webkit/blob/1262b1fbf85ae267aab0c946500527ef3b97bac8/Source/WTF/wtf/mac/AppKitCompatibilityDeclarations.h Ref: https://github.com/keepassxreboot/keepassxc/issues/2899 --- src/gui/macutils/AppKitImpl.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/macutils/AppKitImpl.mm b/src/gui/macutils/AppKitImpl.mm index dec33421e..9bfbc8de7 100644 --- a/src/gui/macutils/AppKitImpl.mm +++ b/src/gui/macutils/AppKitImpl.mm @@ -19,6 +19,11 @@ #import "AppKitImpl.h" #import +#import + +#if __MAC_OS_X_VERSION_MAX_ALLOWED < 101200 +static const NSEventMask NSEventMaskKeyDown = NSKeyDownMask; +#endif @implementation AppKitImpl