X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2fcce89663e88cd41896ef62762660c1c1bbbc3a..c1ef87c33d21f834a55f106324d5a6de4b9600cb:/src/stc/stc.h.in?ds=inline diff --git a/src/stc/stc.h.in b/src/stc/stc.h.in index 2427f34813..9ea0102760 100644 --- a/src/stc/stc.h.in +++ b/src/stc/stc.h.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