gtypist: Drop patch no longer needed
[termux-packages] / packages / gtypist / gtypist_c.patch
1 diff -u -r ../gtypist-2.9.4/src/gtypist.c ./src/gtypist.c
2 --- ../gtypist-2.9.4/src/gtypist.c 2013-08-18 16:36:14.000000000 +0200
3 +++ ./src/gtypist.c 2014-03-01 01:30:43.000000000 +0100
4 @@ -41,7 +41,7 @@
5 #include <assert.h>
6 #include <locale.h>
7 #include <wctype.h>
8 -#ifndef MINGW
9 +#if !defined(MINGW) && !defined(__ANDROID__)
10 #include <langinfo.h>
11 #endif
12
13 @@ -138,7 +138,7 @@
14 #define ADDCH_REV(X) wideaddch_rev(X)
15
16
17 -#ifdef MINGW
18 +#if defined(MINGW) || defined(__ANDROID__)
19 #define MIN( a, b ) ( ( a ) < ( b )? ( a ) : ( b ) )
20 #define MAX( a, b ) ( ( a ) > ( b )? ( a ) : ( b ) )
21 #endif
22 @@ -1999,7 +1999,7 @@
23 textdomain (PACKAGE);
24 #endif
25
26 -#ifdef MINGW
27 +#if defined(MINGW) || defined(__ANDROID__)
28 locale_encoding = "UTF-8";
29 #else
30 locale_encoding = nl_langinfo(CODESET);