Permalink
Browse files

Use cdom::strcasecmp for cross-platform compatibility

  • Loading branch information...
1 parent 3a5ad1a commit 966fa4fc5245af166664f95c26f9c4e8867ed61d Mikko Lehtonen committed May 7, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/conditioners/axisconverter_core.cpp
@@ -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());

0 comments on commit 966fa4f

Please sign in to comment.