From 5fb239e8a3117341fa1b0fe4749dbe14e51c2028 Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Tue, 29 Nov 2011 18:30:34 +0100 Subject: [PATCH] Include qglobal.h first in qnsview.mm compilation unit. If cocoa headers are being included first, this messes up the defines MAC_OS_X_VERSION_MAX_ALLOWED and MAC_OS_X_VERSION_MIN_REQUIRED when compiling with clang. Change-Id: I07177d07a0ac7c5f7e72b04f42d6343e689e0d33 Reviewed-by: Ali Akhtarzada Reviewed-by: Denis Dzyubenko --- src/plugins/platforms/cocoa/qmultitouch_mac_p.h | 2 ++ src/plugins/platforms/cocoa/qnsview.mm | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/plugins/platforms/cocoa/qmultitouch_mac_p.h b/src/plugins/platforms/cocoa/qmultitouch_mac_p.h index 02bbc6da21..811813c963 100644 --- a/src/plugins/platforms/cocoa/qmultitouch_mac_p.h +++ b/src/plugins/platforms/cocoa/qmultitouch_mac_p.h @@ -53,6 +53,8 @@ #ifndef QMULTITOUCH_MAC_P_H #define QMULTITOUCH_MAC_P_H +#include + #import #include diff --git a/src/plugins/platforms/cocoa/qnsview.mm b/src/plugins/platforms/cocoa/qnsview.mm index 73e3115acf..7c9873a908 100644 --- a/src/plugins/platforms/cocoa/qnsview.mm +++ b/src/plugins/platforms/cocoa/qnsview.mm @@ -39,6 +39,8 @@ ** ****************************************************************************/ +#include + #include #include "qnsview.h"