Fixed IRIX compile issues with the flt loader.

ReaderWriterATTR.cpp had a variable "mips" defined, which is predefined for the IRIX preprocessor.
Changed this to _mips.

FltFile.cpp had a class and transient variable defined within the scope of member function
FltFile::readExternals(), which was causing the IRIX 7.3 compiles to hork.  Moved the class
definition to outside of the member function scope.
This commit is contained in:
Don BURNS
2001-12-17 17:34:17 +00:00
parent b35b5f3c3c
commit 0509495340
4 changed files with 12 additions and 9 deletions

View File

@@ -138,8 +138,9 @@ bool FltFile::readFile(const std::string& fileName)
#define REGISTER_FLT 1
void FltFile::readExternals()
{
// This class was originally scoped within FltFile::readExternals() function.
// Irix 7.3 compilers hork on this.
class ReadExternal : public RecordVisitor
{
public:
@@ -202,6 +203,8 @@ void FltFile::readExternals()
FltFile* _pFltFile;
};
void FltFile::readExternals()
{
ReadExternal visitor(this);
_headerRecord->accept(visitor);
}