From 7847cf8cac3ace56d062c6d1962f2df02d25d329 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 11 May 2005 18:44:14 +0000 Subject: major abi changes: * introduce the mbstate_t typedef. impacts gnu libiconv, which has already been taken care of. * Prepare for mb stuff to really exist, replace macro MB_CUR_MAX with an external variable __mb_cur_max (impacts libX11 and various ports). * use mbstate in all the mb <-> wchar functions with state. * add a stub iswctype function allowing some ports to compile. bash and gdiff are missing wcscoll, and need to be told there's no i18n until this is fixed. Discussed and matthieu, otto, millert, kettenis, deraadt. Major libc bump --- include/stdlib.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/stdlib.h') diff --git a/include/stdlib.h b/include/stdlib.h index 76a2a1f3eb9..8fdec7e2e99 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.32 2004/08/03 19:59:42 millert Exp $ */ +/* $OpenBSD: stdlib.h,v 1.33 2005/05/11 18:44:12 espie Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -84,7 +84,8 @@ typedef struct { #define RAND_MAX 0x7fffffff -#define MB_CUR_MAX 1 /* XXX */ +extern size_t __mb_cur_max; +#define MB_CUR_MAX __mb_cur_max #include -- cgit v1.2.3