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 <ali.akhtarzada@nokia.com>
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
This commit is contained in:
Zeno Albisser 2011-11-29 18:30:34 +01:00 committed by Qt by Nokia
parent 84e66f69ae
commit 5fb239e8a3
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,8 @@
#ifndef QMULTITOUCH_MAC_P_H
#define QMULTITOUCH_MAC_P_H
#include <QtCore/qglobal.h>
#import <Cocoa/Cocoa.h>
#include <QtGui/QWindowSystemInterface>

View File

@ -39,6 +39,8 @@
**
****************************************************************************/
#include <QtCore/qglobal.h>
#include <Carbon/Carbon.h>
#include "qnsview.h"