X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3324be240257cb1a97c439616a1d58cb3b437cc..2d9cdc4b6947fa5fb05aca64673ca170c66141cf:/src/msw/ole/droptgt.cpp diff --git a/src/msw/ole/droptgt.cpp b/src/msw/ole/droptgt.cpp index 777614b28e..d1c729dbb4 100644 --- a/src/msw/ole/droptgt.cpp +++ b/src/msw/ole/droptgt.cpp @@ -22,7 +22,6 @@ #endif // For compilers that support precompilation, includes "wx.h". -#define IN_WX_MAIN_CPP #include "wx/wxprec.h" #if defined(__BORLANDC__) @@ -31,7 +30,7 @@ #include -#if USE_DRAG_AND_DROP +#if wxUSE_DRAG_AND_DROP #include @@ -372,7 +371,7 @@ bool wxFileDropTarget::OnDrop(long x, long y, const void *pData) HDROP hdrop = (HDROP)pData; // @@ it works, but I'm not sure about it // get number of files (magic value -1) - UINT nFiles = ::DragQueryFile(hdrop, -1, NULL, 0); + UINT nFiles = ::DragQueryFile(hdrop, (unsigned)-1, NULL, 0u); // for each file get the length, allocate memory and then get the name char **aszFiles = new char *[nFiles]; @@ -417,4 +416,4 @@ wxDataFormat wxFileDropTarget::GetFormat(size_t WXUNUSED(n)) const } #endif - // USE_DRAG_AND_DROP + // wxUSE_DRAG_AND_DROP