Skip to content

Commit

Permalink
Use cdom::strcasecmp for cross-platform compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikko Lehtonen committed May 7, 2009
1 parent 3a5ad1a commit 966fa4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/conditioners/axisconverter_core.cpp
Expand Up @@ -1583,11 +1583,11 @@ int Axisconverter::execute()

docName = getInput(0).c_str();

if ( stricmp(axis.c_str(), "X_UP") == 0 || stricmp(axis.c_str(), "X") == 0 )
if ( cdom::strcasecmp(axis.c_str(), "X_UP") == 0 || cdom::strcasecmp(axis.c_str(), "X") == 0 )
x_up_converter(_dae, verbose);
else if (stricmp(axis.c_str(), "Y_UP") == 0 || stricmp(axis.c_str(), "Y") == 0)
else if (cdom::strcasecmp(axis.c_str(), "Y_UP") == 0 || cdom::strcasecmp(axis.c_str(), "Y") == 0)
y_up_converter(_dae, verbose);
else if (stricmp(axis.c_str(), "Z_UP") == 0 || stricmp(axis.c_str(), "Z") == 0)
else if (cdom::strcasecmp(axis.c_str(), "Z_UP") == 0 || cdom::strcasecmp(axis.c_str(), "Z") == 0)
z_up_converter(_dae, verbose);
else {
printf("%s is not recongized\n", axis.c_str());
Expand Down

0 comments on commit 966fa4f

Please sign in to comment.