termux-packages/packages/angband/src-main.c.patch

24 lines
536 B
Diff

--- ./src/main.c.orig 2021-08-01 00:28:01.000000000 +0200
+++ ./src/main.c 2021-09-10 09:34:27.031713786 +0200
@@ -37,7 +37,7 @@
*/
#include <locale.h>
-#if !defined(WINDOWS)
+#if !defined(WINDOWS) && !defined(__ANDROID__)
#include <langinfo.h>
#endif
@@ -475,9 +475,11 @@
ANGBAND_SYS = mstr;
#if !defined(WINDOWS) && !defined(DJGPP)
if (setlocale(LC_CTYPE, "")) {
+#ifndef __ANDROID__
/* Require UTF-8 */
if (!streq(nl_langinfo(CODESET), "UTF-8"))
quit("Angband requires UTF-8 support");
+#endif
}
#endif