OSDN Git Service

fix some compiler warnings
authorIvailo Monev <xakepa10@laimg.moc>
Tue, 26 Jul 2016 11:14:36 +0000 (11:14 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Tue, 26 Jul 2016 11:14:36 +0000 (11:14 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qt_cocoa_helpers_mac.mm
src/gui/kernel/qt_cocoa_helpers_mac_p.h

index a88aa7b..25ab5a5 100644 (file)
@@ -876,7 +876,7 @@ NSPoint flipPoint(const QPointF &p)
     return NSMakePoint(p.x(), flipYCoordinate(p.y()));
 }
 
-#ifdef QT_MAC_USE_COCOA && __OBJC__
+#if defined(QT_MAC_USE_COCOA) && defined(__OBJC__)
 
 void qt_mac_handleNonClientAreaMouseEvent(NSWindow *window, NSEvent *event)
 {
index 412fbdd..c22687f 100644 (file)
@@ -163,7 +163,7 @@ QPixmap qt_mac_convert_iconref(const IconRef icon, int width, int height);
 void qt_mac_constructQIconFromIconRef(const IconRef icon, const IconRef overlayIcon, QIcon *retIcon,
                                       QStyle::StandardPixmap standardIcon = QStyle::SP_CustomBase);
 
-#ifdef QT_MAC_USE_COCOA && __OBJC__
+#if defined(QT_MAC_USE_COCOA) && defined(__OBJC__)
 struct DnDParams
 {
     NSView *view;