1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Make nsgmls compile on OpenBSD.

As far as I can tell, the duplicate instantiations from entmgr_inst.m4 are
unnecessary and only cause compile failures without -fpermissive.
This commit is contained in:
Pascal Stumpf 2012-08-11 14:09:40 +02:00 committed by Jon Trulson
parent e3ad7e24e3
commit 205e26b3ef
10 changed files with 15 additions and 21 deletions

View file

@ -58,7 +58,7 @@
#include "ConsoleOutput.h"
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <iostream>
#include <fstream>
using namespace std;
@ -292,7 +292,7 @@ Boolean CmdLineApp::openFilebufWrite(filebuf &file,
return 0;
return file.attach(fd) != 0;
#else
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
return file.open(filename, ios::out|ios::trunc) != 0;
#else
return file.open(filename, ios::out|ios::trunc|IOS_BINARY) != 0;

View file

@ -43,7 +43,7 @@
#include <stddef.h>
#endif
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <fstream>
using namespace std;
#else

View file

@ -33,7 +33,7 @@
#ifdef SP_SHORT_HEADERS
#include <strstrea.h>
#else
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <strstream>
#else
#include <strstream.h>
@ -82,7 +82,7 @@ String<char> OutputCodingSystem::convertOut(const StringC &str) const
encoder->output(copy.data(), copy.size(), &stream);
delete encoder;
char *s = stream.str();
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
String<char> result(s, stream.pcount());
#else
String<char> result(s, stream.out_waiting());

View file

@ -41,7 +41,7 @@
#include <stddef.h>
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <streambuf>
using namespace std;
#else

View file

@ -28,7 +28,7 @@
#include "OutputCharStream.h"
#include "CodingSystem.h"
#include "macros.h"
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <iostream>
#else
#include <iostream.h>
@ -148,7 +148,7 @@ void IosOutputCharStream::flush()
encoder_->output(buf_, ptr_ - buf_, byteStream_);
ptr_ = buf_;
}
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
byteStream_->pubsync();
#else
byteStream_->sync();

View file

@ -33,7 +33,7 @@
#include "Owner.h"
#include "CodingSystem.h"
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <streambuf>
using namespace std;
#else

View file

@ -32,7 +32,7 @@
#ifdef __GNUG__
// It's not missing, but it pulls in libg++
#if !defined(linux)
#if !defined(linux) && !defined(CSRG_BASED)
#define SP_NEW_H_MISSING
// set_new_handler() has to be declared extern "C"
#define SP_SET_NEW_HANDLER_EXTERN_C

View file

@ -61,7 +61,6 @@ __instantiate(`RangeMapIter<WideChar,UnivChar>')
__instantiate(`RangeMap<WideChar,UnivChar>')
__instantiate(Vector<InputSourceOriginNamedCharRef>)
__instantiate(Vector<StringC>)
__instantiate(Vector<String<EquivCode> >)
__instantiate(Owner<ExternalInfo>)
__instantiate(ISet<Char>)
__instantiate(Vector<ISetRange<Char> >)
@ -71,16 +70,11 @@ __instantiate(ISetIter<WideChar>)
__instantiate(Vector<ISetRange<WideChar> >)
__instantiate(SubstTable<Char>)
__instantiate(SharedXcharMap<PackedBoolean>)
__instantiate(SharedXcharMap<unsigned char>)
__instantiate(SharedXcharMap<EquivCode>)
__instantiate(String<EquivCode>)
__instantiate(String<SyntaxChar>)
__instantiate(XcharMap<PackedBoolean>)
__instantiate(XcharMap<unsigned char>)
__instantiate(XcharMap<EquivCode>)
__instantiate(Vector<char>)
__instantiate(Vector<PackedBoolean>)
__instantiate(SubstTable<Char>)
#ifdef SP_NAMESPACE
}

View file

@ -38,7 +38,7 @@
#include "sptchar.h"
#include "macros.h"
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <iostream>
#include <fstream>
#else
@ -84,7 +84,7 @@ public:
const AppChar *filename,
const StringC &filenameStr,
const OutputCodingSystem *,
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
::Messenger *messenger);
#else
Messenger *messenger);
@ -94,7 +94,7 @@ public:
void truncateOutput();
void allLinkTypesActivated();
private:
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
::Messenger *messenger_;
#else
Messenger *messenger_;
@ -248,7 +248,7 @@ XRastEventHandler::XRastEventHandler(SgmlParser *parser,
const AppChar *filename,
const StringC &filenameStr,
const OutputCodingSystem *codingSystem,
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
::Messenger *messenger)
#else
::Messenger *messenger)

View file

@ -39,7 +39,7 @@ void set_new_handler(VFP);
#else /* not SP_NEW_H_MISSING */
#if defined(linux)
#if defined(linux) || defined(CSRG_BASED)
#include <new>
#else
#include <new.h>