// 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"
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__