Fixed PowerPC compilation... though still doesn't work with the Jamfile, owing to the need for a different C++ library (mslcpp_4_0).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5173 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
99892f1004
commit
8f1f3e5386
@ -135,7 +135,7 @@ ssize_t LprTransport::Read(void *, size_t)
|
||||
ssize_t LprTransport::Write(const void *buffer, size_t size)
|
||||
{
|
||||
// DBGMSG(("write: %d\n", size));
|
||||
if (!__fs.write(buffer, size)) {
|
||||
if (!__fs.write((char *)buffer, size)) {
|
||||
__error = true;
|
||||
return 0;
|
||||
}
|
||||
|
@ -162,11 +162,7 @@ void LpsClient::transferData(istream &is, int size) throw(LPSException)
|
||||
|
||||
if (size < 0) {
|
||||
is.seekg(0, ios::end);
|
||||
#if __MWERKS__
|
||||
size = is.tellg().offset();
|
||||
#else
|
||||
size = is.tellg();
|
||||
#endif
|
||||
is.seekg(0, ios::beg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user