From 0c7a4fdedc436acefaf04a75a7889cb752e85cbb Mon Sep 17 00:00:00 2001 From: Michael PLATINGS Date: Tue, 15 Jun 2010 09:09:38 +0000 Subject: [PATCH] Changed _strnicmp to strncasecmp for non-Windows builds --- src/osgPlugins/fbx/ReaderWriterFBX.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/fbx/ReaderWriterFBX.cpp b/src/osgPlugins/fbx/ReaderWriterFBX.cpp index 8d1c72c60..b8789751c 100644 --- a/src/osgPlugins/fbx/ReaderWriterFBX.cpp +++ b/src/osgPlugins/fbx/ReaderWriterFBX.cpp @@ -1,5 +1,8 @@ #include #include +#ifndef WIN32 +#include //for strncasecmp +#endif #include #include @@ -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;