diff options
author | Dov Grobgeld <dov.grobgeld@gmail.com> | 2017-11-12 23:18:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 23:18:28 +0200 |
commit | 6e23ed0d4adf2e889cd593ed9ee4df3edaa3ba49 (patch) | |
tree | 0d4243f14a6f6687787935826a40803e5440094e /charset/fribidi-char-sets.c | |
parent | 72e901ceb7850b9e8a04c60e997c46df96676c44 (diff) | |
parent | cd50fbafae142616519ffe2ff257e98611f2b7ff (diff) | |
download | fribidi-6e23ed0d4adf2e889cd593ed9ee4df3edaa3ba49.tar.gz |
Merge pull request #14 from khaledhosny/no-glib
Drop glib dependency
Diffstat (limited to 'charset/fribidi-char-sets.c')
-rw-r--r-- | charset/fribidi-char-sets.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/charset/fribidi-char-sets.c b/charset/fribidi-char-sets.c index f7156b4..5a9e21e 100644 --- a/charset/fribidi-char-sets.c +++ b/charset/fribidi-char-sets.c @@ -113,12 +113,8 @@ static FriBidiCharSetHandler char_sets[FRIBIDI_CHAR_SETS_NUM + 1] = { # undef _FRIBIDI_ADD_CHAR_SET_ONE2ONE }; -#if FRIBIDI_USE_GLIB+0 -# include <glib/gstrfuncs.h> -# define fribidi_strcasecmp g_ascii_strcasecmp -#else /* !FRIBIDI_USE_GLIB */ static char -toupper ( +fribidi_toupper ( /* input */ char c ) @@ -133,14 +129,13 @@ fribidi_strcasecmp ( const char *s2 ) { - while (*s1 && toupper (*s1) == toupper (*s2)) + while (*s1 && fribidi_toupper (*s1) == fribidi_toupper (*s2)) { s1++; s2++; } - return toupper (*s1) - toupper (*s2); + return fribidi_toupper (*s1) - fribidi_toupper (*s2); } -#endif /* !FRIBIDI_USE_GLIB */ FRIBIDI_ENTRY FriBidiCharSet fribidi_parse_charset ( |