X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7c746d017c42dfc5c44adff78b57b18aee90fbc..dd9f8b6bb6935360a8271dc3e8749fb026b601a8:/include/wx/cppunit.h diff --git a/include/wx/cppunit.h b/include/wx/cppunit.h index 9ccc2a93c3..e87892b5a2 100644 --- a/include/wx/cppunit.h +++ b/include/wx/cppunit.h @@ -100,6 +100,8 @@ #include "wx/string.h" +#include + inline std::ostream& operator<<(std::ostream& o, const wxString& s) { #if wxUSE_UNICODE @@ -109,6 +111,28 @@ inline std::ostream& operator<<(std::ostream& o, const wxString& s) #endif } +// VC6 doesn't provide overloads for operator<<(__int64) in its stream classes +// so do it ourselves +#if defined(__VISUALC6__) && defined(wxLongLong_t) + +#include "wx/longlong.h" + +inline std::ostream& operator<<(std::ostream& ostr, wxLongLong_t ll) +{ + ostr << wxLongLong(ll).ToString(); + + return ostr; +} + +inline std::ostream& operator<<(std::ostream& ostr, unsigned wxLongLong_t llu) +{ + ostr << wxULongLong(llu).ToString(); + + return ostr; +} + +#endif // VC6 && wxLongLong_t + #endif // !wxUSE_STD_IOSTREAM ///////////////////////////////////////////////////////////////////////////////