fixed some linux issues

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@186 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
alil
2008-10-19 19:51:24 +00:00
parent 2da2835b29
commit c0148c090f
4 changed files with 14 additions and 5 deletions

View File

@@ -611,7 +611,12 @@ void AC3DImporter::InternReadFile( const std::string& pFile,
// print the file format version to the console
unsigned int version = HexDigitToDecimal( buffer[4] );
char msg[3];::_itoa(version,msg,10);
char msg[3];
#if defined(_MSC_VER)
::_itoa(version,msg,10);
#else
snprintf(msg, 3, "%d", version); //itoa is not available under linux
#endif
DefaultLogger::get()->info(std::string("AC3D file format version: ") + msg);
std::vector<Material> materials;