From fbfeeaccd16c71d2b35f4546ab20c4e2f0bfc208 Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 3 Jul 2020 21:48:07 -0700 Subject: [PATCH] Use SDL_tolower() instead of libc tolower() in compare_nocase() This is to avoid having to depend on libc as much as possible. --- desktop_version/src/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index bcf99346..8c7d50d5 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -67,9 +67,9 @@ bool compare_nocase (std::string first, std::string second) unsigned int i=0; while ( (itolower(second[i])) + else if (SDL_tolower(first[i])>SDL_tolower(second[i])) return false; ++i; }