X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstriconveha.c;h=fb4c496c292fa51a79fcb36c11889a07c52a0b93;hb=4470580881a7b821b52fb5635102ef3e27aa5af4;hp=a43ed915eb0745ee63b53f74db509c2daeccb90c;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/striconveha.c b/lib/striconveha.c index a43ed915e..fb4c496c2 100644 --- a/lib/striconveha.c +++ b/lib/striconveha.c @@ -1,5 +1,5 @@ /* Character set conversion with error handling and autodetection. - Copyright (C) 2002, 2005, 2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2002, 2005, 2007, 2009-2011 Free Software Foundation, Inc. Written by Bruno Haible. This program is free software: you can redistribute it and/or modify @@ -226,7 +226,9 @@ mem_iconveha (const char *src, size_t srclen, /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, we want to use transliteration. */ -#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 +#if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) \ + && !defined __UCLIBC__) \ + || _LIBICONV_VERSION >= 0x0105 if (transliterate) { int retval; @@ -326,7 +328,9 @@ str_iconveha (const char *src, /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, we want to use transliteration. */ -#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 || _LIBICONV_VERSION >= 0x0105 +#if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) \ + && !defined __UCLIBC__) \ + || _LIBICONV_VERSION >= 0x0105 if (transliterate) { char *result;