Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>

*** 21,30 **** --- 21,33 ---- */ /* * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ + /* + * Copyright 2013 Garrett D'Amore <garrett@damore.org> + */ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */
*** 48,63 **** #ifdef __cplusplus extern "C" { #endif #if defined(__STDC__) ! extern unsigned char __ctype[]; ! #define MB_CUR_MAX __ctype[520] #else ! extern unsigned char _ctype[]; ! #define MB_CUR_MAX _ctype[520] #endif #if __cplusplus >= 199711L namespace std { #endif --- 51,67 ---- #ifdef __cplusplus extern "C" { #endif #if defined(__STDC__) ! unsigned char __mb_cur_max(void); #else ! unsigned char __mb_cur_max(); #endif + #ifndef MB_CUR_MAX + #define MB_CUR_MAX (__mb_cur_max()) + #endif #if __cplusplus >= 199711L namespace std { #endif