Skip to content
Permalink
Browse files

fix msvc build

  • Loading branch information
jef-n committed Jul 16, 2018
1 parent 6551913 commit 5d11388d13bca053cd26b1eee4d614d4989c4843
Showing with 9 additions and 1 deletion.
  1. +9 −1 external/mdal/mdal_utils.cpp
@@ -4,6 +4,7 @@
*/

#include "mdal_utils.hpp"
#include <string>
#include <fstream>
#include <iostream>
#include <algorithm>
@@ -101,7 +102,14 @@ bool MDAL::contains( const std::string &str, const std::string &substr, Contains
auto it = std::search(
str.begin(), str.end(),
substr.begin(), substr.end(),
[]( char ch1, char ch2 ) { return std::toupper( ch1 ) == std::toupper( ch2 ); }
[]( char ch1, char ch2 )
{
#ifdef _MSC_VER
return toupper( ch1 ) == toupper( ch2 );
#else
return std::toupper( ch1 ) == std::toupper( ch2 );
#endif
}
);
return ( it != str.end() );
}

0 comments on commit 5d11388

Please sign in to comment.
You can’t perform that action at this time.