]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkUtilities.cxx
Windows compilation
[bbtk.git] / kernel / src / bbtkUtilities.cxx
index 9a6b0283e3ca0fc0ea3f36ee5d04f7967aeb78dc..968853ff91b111f59a100382974cf1cb42f9eacb 100644 (file)
@@ -1,5 +1,5 @@
 #include "bbtkUtilities.h"
+
 
 namespace bbtk
 {
@@ -8,17 +8,23 @@ namespace bbtk
 bool Utilities::loosematch(std::string stdLine,std::string stdOptions) 
 {
        bool result=false;
-       char charTmp;
          std::vector<std::string> tokens;
          SplitString ( stdOptions,"|", tokens);
-                         int j,sizeStdLineTmp;
          int i,size=tokens.size();  
          for (i=0; i<size; i++)
          {               
+#ifdef WIN32
+                 if ( strcmpi(stdLine.c_str(),tokens[i].c_str())==0) 
+                 { 
+                         result=true; 
+                 }               
+#else
                  if ( strcasecmp(stdLine.c_str(),tokens[i].c_str())==0) 
                  { 
                          result=true; 
                  }               
+#endif
+
          }
          return result;
 }