#ifdef update for the old SWIG
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,6 +35,15 @@
|
||||
#endif // SWIG
|
||||
|
||||
|
||||
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
||||
#ifdef SWIG
|
||||
#define STC_USE_DND 1
|
||||
#else
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
#define STC_USE_DND 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// Should a wxPopupWindow be used for the call tips and autocomplete windows?
|
||||
@@ -191,7 +200,7 @@ public:
|
||||
// Load the contents of filename into the editor
|
||||
bool LoadFile(const wxString& filename);
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
#ifdef STC_USE_DND
|
||||
// Allow for simulating a DnD DragOver
|
||||
wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
|
||||
|
||||
@@ -251,15 +260,6 @@ protected:
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
// SWIG can't handle "#if" type of conditionals, only "#ifdef"
|
||||
#ifdef SWIG
|
||||
#define STC_USE_DND 1
|
||||
#else
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
#define STC_USE_DND 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef SWIG
|
||||
class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
|
||||
#else
|
||||
|
Reference in New Issue
Block a user