From Ken Sewell, fixed for x86_64 build.

This commit is contained in:
Robert Osfield
2005-06-13 11:14:42 +00:00
parent 3612da9fbc
commit 80a99a2559
2 changed files with 8 additions and 3 deletions

View File

@@ -592,7 +592,7 @@ std::string osgDB::findFileInDirectory(const std::string& fileName,const std::st
CFBundleRef myBundle;
CFStringRef bundlePathString;
FSRef f;
OSErr errCode;
OSErr errCode;
// Start with the the Bundle PlugIns directory.
// Unlike the Cocoa API, it seems that the PlugIn path is relative
@@ -724,7 +724,7 @@ std::string osgDB::findFileInDirectory(const std::string& fileName,const std::st
}
else
{
// had to comment out as it segfauls the OSX app otherwise
// had to comment out as it segfauls the OSX app otherwise
// osg::notify( osg::DEBUG_INFO ) << "Couldn't find the Network Application Support Path" << std::endl;
}
}
@@ -750,7 +750,12 @@ std::string osgDB::findFileInDirectory(const std::string& fileName,const std::st
convertStringPathIntoFilePathList(ptr,filepath);
}
#if defined(__ia64__) || defined(__x86_64__)
convertStringPathIntoFilePathList("/usr/lib/:/usr/lib64/:/usr/local/lib/:/usr/local/lib64/",filepath);
#else
convertStringPathIntoFilePathList("/usr/lib/:/usr/local/lib/",filepath);
#endif
}

View File

@@ -765,7 +765,7 @@ class ReaderWriterATTR : public osgDB::ReaderWriter
{
// Get the character index of the FLT_VER option in the option
// string
unsigned int optionIndex = options->getOptionString().find("FLT_VER");
std::string::size_type optionIndex = options->getOptionString().find("FLT_VER");
// Default to zero for the version if it's not found
if (optionIndex == std::string::npos)