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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user