X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c085e333984dc079a001cd3f581aeb1f51a1f227..a6e2157322eedc8142be3a24cb3fe26eb1e8a0e8:/include/wx/log.h?ds=inline diff --git a/include/wx/log.h b/include/wx/log.h index 219301b80f..ec849d8df9 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -57,7 +57,8 @@ class WXDLLEXPORT wxLogFrame; class WXDLLEXPORT wxFrame; #if wxUSE_IOSTREAMH -# include +// N.B. BC++ doesn't have istream.h, ostream.h +# include #else # include # ifdef _MSC_VER @@ -179,6 +180,7 @@ private: FILE *m_fp; }; +#if wxUSE_STD_IOSTREAM // log everything to an "ostream", cerr by default class WXDLLEXPORT wxLogStream : public wxLog { @@ -193,9 +195,11 @@ protected: // @@ using ptr here to avoid including from this file ostream *m_ostr; }; +#endif #ifndef wxUSE_NOGUI +#if wxUSE_STD_IOSTREAM // log everything to a text window (GUI only of course) class WXDLLEXPORT wxLogTextCtrl : public wxLogStream { @@ -204,6 +208,7 @@ public: wxLogTextCtrl(wxTextCtrl *pTextCtrl); ~wxLogTextCtrl(); }; +#endif // ---------------------------------------------------------------------------- // GUI log target, the default one for wxWindows programs @@ -378,9 +383,9 @@ WXDLLEXPORT_DATA(extern bool) g_bVerbose; // ---------------------------------------------------------------------------- // return the last system error code -unsigned long WXDLLEXPORT wxSysErrorCode(); +WXDLLEXPORT unsigned long wxSysErrorCode(); // return the error message for given (or last if 0) error code -const char* WXDLLEXPORT wxSysErrorMsg(unsigned long nErrCode = 0); +WXDLLEXPORT const char* wxSysErrorMsg(unsigned long nErrCode = 0); // ---------------------------------------------------------------------------- // debug only logging functions: use them with API name and error code