Changed _strnicmp to strncasecmp for non-Windows builds

This commit is contained in:
Michael PLATINGS 2010-06-15 09:09:38 +00:00
parent d58d417159
commit 0c7a4fdedc

View File

@ -1,5 +1,8 @@
#include <sstream>
#include <memory>
#ifndef WIN32
#include <strings.h>//for strncasecmp
#endif
#include <osg/Notify>
#include <osg/MatrixTransform>
@ -306,7 +309,13 @@ ReaderWriterFBX::readNode(const std::string& filenameInit,
for (int i = 0; i < sizeof(authoringTools) / sizeof(authoringTools[0]); ++i)
{
if (0 == _strnicmp(appName, authoringTools[i].name, strlen(authoringTools[i].name)))
if (0 ==
#ifdef WIN32
_strnicmp
#else
strncasecmp
#endif
(appName, authoringTools[i].name, strlen(authoringTools[i].name)))
{
authoringTool = authoringTools[i].tool;
break;