summaryrefslogtreecommitdiffstats
path: root/src/animation
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-25 18:35:03 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-25 18:35:03 +0100
commit9647901ba07e6252ce850b72108958324d3b3230 (patch)
tree0a17b9decd677ecbf3a288705df0ed2eeaef87e4 /src/animation
parentMove CRunningScript (diff)
parentUpdate OpenAL (diff)
downloadre3-9647901ba07e6252ce850b72108958324d3b3230.tar
re3-9647901ba07e6252ce850b72108958324d3b3230.tar.gz
re3-9647901ba07e6252ce850b72108958324d3b3230.tar.bz2
re3-9647901ba07e6252ce850b72108958324d3b3230.tar.lz
re3-9647901ba07e6252ce850b72108958324d3b3230.tar.xz
re3-9647901ba07e6252ce850b72108958324d3b3230.tar.zst
re3-9647901ba07e6252ce850b72108958324d3b3230.zip
Diffstat (limited to 'src/animation')
-rw-r--r--src/animation/AnimBlendAssocGroup.cpp18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/animation/AnimBlendAssocGroup.cpp b/src/animation/AnimBlendAssocGroup.cpp
index 8fc2a8dc..7c0a10d4 100644
--- a/src/animation/AnimBlendAssocGroup.cpp
+++ b/src/animation/AnimBlendAssocGroup.cpp
@@ -1,7 +1,11 @@
#include "common.h"
#if defined _WIN32 && !defined __MINGW32__
+#if defined __MWERKS__
+#include <wctype.h>
+#else
#include "ctype.h"
+#endif
#else
#include <cwctype>
#endif
@@ -89,18 +93,18 @@ strcmpIgnoringDigits(const char *s1, const char *s2)
if(c1) s1++;
if(c2) s2++;
if(c1 == '\0' && c2 == '\0') return true;
-#if defined _WIN32 && !defined __MINGW32__
- if(__ascii_iswdigit(c1) && __ascii_iswdigit(c2))
-#else
+#ifndef ASCII_STRCMP
if(iswdigit(c1) && iswdigit(c2))
+#else
+ if(__ascii_iswdigit(c1) && __ascii_iswdigit(c2))
#endif
continue;
-#if defined _WIN32 && !defined __MINGW32__
- c1 = __ascii_toupper(c1);
- c2 = __ascii_toupper(c2);
-#else
+#ifndef ASCII_STRCMP
c1 = toupper(c1);
c2 = toupper(c2);
+#else
+ c1 = __ascii_toupper(c1);
+ c2 = __ascii_toupper(c2);
#endif
if(c1 && c2 && c1 != c2)