diff --git a/tests/streams/fileback.cpp b/tests/streams/fileback.cpp index 942c578562..07e11c7900 100644 --- a/tests/streams/fileback.cpp +++ b/tests/streams/fileback.cpp @@ -20,10 +20,11 @@ #ifdef __VISUALC6__ -// need this to be able to use CPPUNIT_ASSERT_EQUAL with wxFileOffset objects +// there is no support for int64 output in VC6 stream classes so output it as +// long which should work as long as we don't use >2GB files in this test... static std::ostream& operator<<(std::ostream& ostr, const wxFileOffset& fo) { - ostr << fo; + ostr << (long)fo; return ostr; } #endif // __VISUALC6__