diff options
author | md5 | 2011-05-13 20:52:33 +0300 |
---|---|---|
committer | md5 | 2011-05-13 20:52:33 +0300 |
commit | 854783ea93d89a28c0bf1617dfd89c84e30d6423 (patch) | |
tree | f2153ba9fd5b2e762f85a039dd995f8f29e09bad /engines/sword25/util/lua/lvm.cpp | |
parent | e3a487702abb7c6f09aae8b0bdf53d3089112af2 (diff) | |
download | scummvm-rg350-854783ea93d89a28c0bf1617dfd89c84e30d6423.tar.gz scummvm-rg350-854783ea93d89a28c0bf1617dfd89c84e30d6423.tar.bz2 scummvm-rg350-854783ea93d89a28c0bf1617dfd89c84e30d6423.zip |
SWORD25 (LUA): Hopefully fixed compilation for the Android platform
Diffstat (limited to 'engines/sword25/util/lua/lvm.cpp')
-rw-r--r-- | engines/sword25/util/lua/lvm.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/sword25/util/lua/lvm.cpp b/engines/sword25/util/lua/lvm.cpp index ae70fe2645..15013397ba 100644 --- a/engines/sword25/util/lua/lvm.cpp +++ b/engines/sword25/util/lua/lvm.cpp @@ -202,7 +202,14 @@ static int l_strcmp (const TString *ls, const TString *rs) { const char *r = getstr(rs); size_t lr = rs->tsv.len; for (;;) { +#if defined(__ANDROID__) + // Android is missing strcoll(). + // For more information, refer to: + // http://www.damonkohler.com/2008/12/lua-on-android.html + int temp = strcmp(l, r); +#else int temp = strcoll(l, r); +#endif if (temp != 0) return temp; else { /* strings are equal up to a `\0' */ size_t len = strlen(l); /* index of first `\0' in both strings */ |