From: Howard Chu Date: Wed, 10 Aug 2005 14:20:13 +0000 (+0000) Subject: ITS#3869 set ldap_unicode_t to ac_uint4 to agree with ucdata usage. X-Git-Tag: OPENLDAP_AC_BP~24 X-Git-Url: https://git.sur5r.net/?p=openldap;a=commitdiff_plain;h=d6f3f78563527ab76941ae8f858324cd33e8979b ITS#3869 set ldap_unicode_t to ac_uint4 to agree with ucdata usage. --- diff --git a/include/ldap_pvt_uc.h b/include/ldap_pvt_uc.h index a9b2515757..56fa45283a 100644 --- a/include/ldap_pvt_uc.h +++ b/include/ldap_pvt_uc.h @@ -33,12 +33,8 @@ LDAP_BEGIN_DECL * UTF-8 (in utf-8.c) */ -typedef short ldap_ucs2_t; - -/* UCDATA uses UCS-2 passed in an unsigned long */ -typedef unsigned long ldap_unicode_t; -#define ldap_utf8_to_unicode( p ) ldap_utf8_to_ucs4((p)) -#define ldap_unicode_to_utf8( c, buf ) ldap_ucs4_to_ucs4((c),(buf)) +/* UCDATA uses UCS-2 passed in a 4 byte unsigned int */ +typedef ac_uint4 ldap_unicode_t; /* Convert a string with csize octets per character to UTF-8 */ LDAP_F( int ) ldap_ucs_to_utf8s LDAP_P((