diff options
Diffstat (limited to 'glib/gconvert.c')
-rw-r--r-- | glib/gconvert.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/glib/gconvert.c b/glib/gconvert.c index c0952da59..2f4d54f76 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -25,7 +25,7 @@ #include "glib.h" -#ifdef ANDROID_STUB +#ifndef ANDROID_STUB #ifndef G_OS_WIN32 #include <iconv.h> #endif @@ -74,7 +74,7 @@ try_conversion (const char *to_codeset, const char *from_codeset, iconv_t *cd) { -#ifdef ANDROID_STUB +#ifndef ANDROID_STUB *cd = iconv_open (to_codeset, from_codeset); if (*cd == (iconv_t)-1 && errno == EINVAL) @@ -106,7 +106,7 @@ try_to_aliases (const char **to_aliases, return FALSE; } -#ifdef ANDROID_STUB +#ifndef ANDROID_STUB G_GNUC_INTERNAL extern const char ** _g_charset_get_aliases (const char *canonical_name); #endif @@ -130,7 +130,7 @@ GIConv g_iconv_open (const gchar *to_codeset, const gchar *from_codeset) { -#ifdef ANDROID_STUB +#ifndef ANDROID_STUB iconv_t cd; if (!try_conversion (to_codeset, from_codeset, &cd)) @@ -188,7 +188,7 @@ g_iconv (GIConv converter, gchar **outbuf, gsize *outbytes_left) { -#ifdef ANDROID_STUB +#ifndef ANDROID_STUB iconv_t cd = (iconv_t)converter; return iconv (cd, inbuf, inbytes_left, outbuf, outbytes_left); @@ -215,7 +215,7 @@ g_iconv (GIConv converter, gint g_iconv_close (GIConv converter) { -#ifdef ANDROID_STUB +#ifndef ANDROID_STUB iconv_t cd = (iconv_t)converter; return iconv_close (cd); |