mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-07-03 06:24:32 +00:00
More compile fixes for gcc 2.95
This commit is contained in:
parent
1fdae0c128
commit
31930051d5
5 changed files with 96 additions and 55 deletions
|
@ -232,7 +232,7 @@ void stringToLowerUserData(std::string &s)
|
|||
const size_t len = userdata.length();
|
||||
const bool match = (s.length() > len) &&
|
||||
((s[len] == '/') || (s[len] == '\\')) &&
|
||||
(userdata.compare(0, len, s, 0, len) == 0);
|
||||
!strncmp(userdata.c_str(), s.c_str(), len);
|
||||
if (!match)
|
||||
stringToLower(s);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue