summaryrefslogtreecommitdiffstats
path: root/src/gui/util/qscroller_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/util/qscroller_mac.mm')
-rw-r--r--src/gui/util/qscroller_mac.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/util/qscroller_mac.mm b/src/gui/util/qscroller_mac.mm
index f544788..4bf69c1 100644
--- a/src/gui/util/qscroller_mac.mm
+++ b/src/gui/util/qscroller_mac.mm
@@ -39,12 +39,14 @@
**
****************************************************************************/
+#include <QtCore/qglobal.h>
+
+#ifdef Q_WS_MAC
+
#import <Cocoa/Cocoa.h>
#include "qscroller_p.h"
-#ifdef Q_WS_MAC
-
QPointF QScrollerPrivate::realDpi(int screen)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];