]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dnd.cpp
fix OpenWatcom warning (patch from Jaakko Salli)
[wxWidgets.git] / src / gtk1 / dnd.cpp
index 3c4ce2dc54d3ab6bd33be05bbc889c12c820a576..becc53af147002f8940f251ae63121f2b30c87c7 100644 (file)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// Name:        dnd.cpp
+// Name:        src/gtk1/dnd.cpp
 // Purpose:     wxDropTarget class
 // Author:      Robert Roebling
 // Id:          $Id$
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
-#include "wx/dnd.h"
-#include "wx/log.h"
+#if wxUSE_DRAG_AND_DROP
 
+#include "wx/dnd.h"
 
-#if wxUSE_DRAG_AND_DROP
+#ifndef WX_PRECOMP
+    #include "wx/intl.h"
+    #include "wx/log.h"
+    #include "wx/app.h"
+    #include "wx/utils.h"
+    #include "wx/window.h"
+#endif
 
-#include "wx/window.h"
-#include "wx/app.h"
 #include "wx/gdicmn.h"
-#include "wx/intl.h"
-#include "wx/utils.h"
 
 #include "wx/gtk1/private.h"
 
@@ -359,7 +361,7 @@ static gboolean target_drag_drop( GtkWidget *widget,
         GdkAtom format = drop_target->GetMatchingPair();
 
         // this does happen somehow, see bug 555111
-        wxCHECK_MSG( format, FALSE, _T("no matching GdkAtom for format?") )
+        wxCHECK_MSG( format, FALSE, _T("no matching GdkAtom for format?") );
 
 /*
         GdkDragAction action = GDK_ACTION_MOVE;