X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..4ca64d4137439844a5e6c95b4da16f32cf7840ab:/src/mac/classic/dnd.cpp diff --git a/src/mac/classic/dnd.cpp b/src/mac/classic/dnd.cpp index 2fa7db53cb..e770b842d9 100644 --- a/src/mac/classic/dnd.cpp +++ b/src/mac/classic/dnd.cpp @@ -18,10 +18,14 @@ #if wxUSE_DRAG_AND_DROP #include "wx/dnd.h" -#include "wx/window.h" -#include "wx/toplevel.h" -#include "wx/app.h" -#include "wx/gdicmn.h" + +#ifndef WX_PRECOMP + #include "wx/app.h" + #include "wx/window.h" + #include "wx/toplevel.h" + #include "wx/gdicmn.h" +#endif // WX_PRECOMP + #include "wx/mac/private.h" // ---------------------------------------------------------------------------- @@ -207,7 +211,7 @@ bool wxDropTarget::GetData() { theData[dataSize]=0 ; wxString convert( theData , wxConvLocal ) ; - m_dataObject->SetData( format, convert.Length() * sizeof(wxChar), (const wxChar*) convert ); + m_dataObject->SetData( format, convert.length() * sizeof(wxChar), (const wxChar*) convert ); } else if ( theType == kDragFlavorTypeHFS ) {