ui/cocoa.m: Fix compatibility issue with Mac OS 10.9 and under
commite72062490620d0c9ff8a0c6e6cf6013fc918a26a
authorJohn Arbuckle <programmingkidx@gmail.com>
Wed, 28 Jun 2017 19:37:16 +0000 (28 15:37 -0400)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 29 Jun 2017 14:07:16 +0000 (29 15:07 +0100)
tree3be03af5c777c3401803012bed6c76f1f7b677e0
parent4fe60423d7f401bd5d4ef461ef53402139f0d698
ui/cocoa.m: Fix compatibility issue with Mac OS 10.9 and under

The [NSEvent modifierFlags] method returns an NSEventModifierFlags type value in Mac OS 10.10. It use to be of type NSUInteger. Replacing NSEventModifierFlags with NSUInteger allows for the cooca.m file to be compiled on older versions of Mac OS. This patch was been tested on Mac OS 10.6 and Mac OS 10.12 without problem.

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
Message-id: F6C36C1A-4661-48F4-BEA6-3994889927D0@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
ui/cocoa.m