Linux compilation of nsgmls (Matthew Howkins)

This commit is contained in:
Peter Howkins
2012-04-11 18:03:23 +01:00
parent cc1d109aa9
commit e60d58be07
17 changed files with 102 additions and 10 deletions

View File

@@ -28,7 +28,11 @@
#include "OutputCharStream.h"
#include "CodingSystem.h"
#include "macros.h"
#if defined(linux)
#include <iostream>
#else
#include <iostream.h>
#endif
#include <stdio.h>
#ifdef SP_NAMESPACE
@@ -144,7 +148,11 @@ void IosOutputCharStream::flush()
encoder_->output(buf_, ptr_ - buf_, byteStream_);
ptr_ = buf_;
}
#if defined(linux)
byteStream_->pubsync();
#else
byteStream_->sync();
#endif
}
void IosOutputCharStream::flushBuf(Char c)