]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dnd.cpp
Widen the hash key for win64
[wxWidgets.git] / src / gtk / dnd.cpp
index d03f079cc84f75b2f033c894fef50393bc3f5ba4..c56c8060470cd1e435aa2af66a514af6f00e87d6 100644 (file)
@@ -7,10 +7,6 @@
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma implementation "dnd.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -510,7 +506,13 @@ 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 =
+#ifdef __WXGTK20__
+                             (GdkAtom)(child->data);
+#else
+                             GPOINTER_TO_INT(child->data);
+#endif
         wxDataFormat format( formatAtom );
 
 #ifdef __WXDEBUG__