Fix wxOSX build with wxUSE_DRAG_AND_DROP==0
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
|
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_DRAG_AND_DROP || wxUSE_CLIPBOARD
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/object.h"
|
#include "wx/object.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_DRAG_AND_DROP
|
|
||||||
|
|
||||||
#include "wx/dnd.h"
|
#include "wx/dnd.h"
|
||||||
#include "wx/clipbrd.h"
|
#include "wx/clipbrd.h"
|
||||||
#include "wx/filename.h"
|
#include "wx/filename.h"
|
||||||
@@ -242,6 +242,7 @@ size_t wxOSXPasteboard::GetItemCount() const
|
|||||||
return [[m_pasteboard pasteboardItems] count];
|
return [[m_pasteboard pasteboardItems] count];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_DRAG_AND_DROP
|
||||||
|
|
||||||
wxDropSource* gCurrentSource = NULL;
|
wxDropSource* gCurrentSource = NULL;
|
||||||
|
|
||||||
@@ -512,4 +513,4 @@ wxDragResult wxDropSource::DoDragDrop(int flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_DRAG_AND_DROP
|
#endif // wxUSE_DRAG_AND_DROP
|
||||||
|
#endif // wxUSE_DRAG_AND_DROP || wxUSE_CLIPBOARD
|
||||||
|
Reference in New Issue
Block a user