X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/67879c5b4197a9ec278a24b44806b896d61982b4..e36a8aff9a71a5478b029c9f5ced6a712ab6bd55:/src/stc/PlatWX.cpp diff --git a/src/stc/PlatWX.cpp b/src/stc/PlatWX.cpp index ab2cb5c06a..6d5e4a622b 100644 --- a/src/stc/PlatWX.cpp +++ b/src/stc/PlatWX.cpp @@ -4,9 +4,23 @@ // Robin Dunn // The License.txt file describes the conditions under which this software may be distributed. +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +#if wxUSE_STC + +#ifndef WX_PRECOMP + #include "wx/menu.h" + #include "wx/dcmemory.h" + #include "wx/settings.h" +#endif // WX_PRECOMP + #include -#include "wx/wx.h" #include "wx/encconv.h" #include "wx/listctrl.h" #include "wx/mstream.h" @@ -769,7 +783,7 @@ END_EVENT_TABLE() #if wxUSE_POPUPWIN //----------------------------------- -#include +#include "wx/popupwin.h" // @@ -899,6 +913,7 @@ END_EVENT_TABLE() #else // !wxUSE_POPUPWIN ----------------------------------- +#include "wx/frame.h" // A normal window to place the wxSTCListBox upon, but make it behave as much // like a wxPopupWindow as possible @@ -1434,6 +1449,8 @@ void Platform::DebugPrintf(const char *format, ...) { vsprintf(buffer,format,pArguments); va_end(pArguments); Platform::DebugDisplay(buffer); +#else + wxUnusedVar(format); #endif } @@ -1556,3 +1573,5 @@ const wxWX2MBbuf wx2stc(const wxString& str) } #endif + +#endif // wxUSE_STC