]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dnd.cpp
added pragmas to disable icc warning when va_arg is used with a pointer type
[wxWidgets.git] / src / gtk1 / dnd.cpp
index 75a0c0962e8afec715c52c7837f0f46ae6874309..1157eef82da455142c6aed2edc485108b2d084fc 100644 (file)
@@ -506,7 +506,12 @@ GdkAtom wxDropTarget::GetMatchingPair()
     GList *child = m_dragContext->targets;
     while (child)
     {
-        GdkAtom formatAtom = (GdkAtom) GPOINTER_TO_INT(child->data);
+        // in GTK+ 1.x GdkAtom was a gulong, but now it's a pointer
+        GdkAtom formatAtom = (GdkAtom)
+#ifndef __WXGTK20__
+                             GPOINTER_TO_INT
+#endif
+                             (child->data);
         wxDataFormat format( formatAtom );
 
 #ifdef __WXDEBUG__