Skip to content

Commit

Permalink
Fix build issue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseMckinzie committed May 8, 2024
1 parent 291475f commit 44c6bbd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/filepattern/cpp/internal/internal_pattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,12 @@ void InternalPattern::sortFiles(){

doj::alphanum_less<std::string> comparator; // alphanum comparison algorithm for strings with numeric and alphabetic chars
sort(this->valid_files_.begin(), this->valid_files_.end(), [comparator](Tuple& m1, Tuple& m2){
return comparator(get<1>(m1)[0], get<1>(m2)[0]);

#ifdef JAVA_BINDING
return comparator(get<1>(m1)[0], get<1>(m2)[0]);
#else
return comparator(get<1>(m1)[0].u8string(), get<1>(m2)[0].u8string());
#endif
});
}

Expand Down

0 comments on commit 44c6bbd

Please sign in to comment.