headers: check that _GL_INLINE_HEADER_BEGIN is defined
[gnulib.git] / lib / uniconv / u32-conv-to-enc.c
index 70e5188..84b79d6 100644 (file)
@@ -1,5 +1,5 @@
 /* Conversion from UTF-32 to legacy encodings.
-   Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2006-2007, 2009-2013 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify it
    under the terms of the GNU Lesser General Public License as published
    alignment.  */
 #if defined _LIBICONV_VERSION
 # define UTF32_NAME "UCS-4-INTERNAL"
-#elif (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
+#elif ((__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)) && !defined __UCLIBC__
 # define UTF32_NAME "WCHAR_T"
 #endif
 
 #define FUNC u32_conv_to_encoding
 #define UNIT uint32_t
 #define U_TO_U8 u32_to_u8
+#define U_MBLEN u32_mblen
 #if defined UTF32_NAME
 # define UTF_NAME UTF32_NAME
 # define HAVE_UTF_NAME 1