wchar.h revision 2d08521bd15501c8370ba2153b9cca4f094979d0
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*/
#ifndef _WCHAR_H
#define _WCHAR_H
#include <sys/feature_tests.h>
#include <iso/wchar_iso.h>
#include <iso/wchar_c99.h>
/*
* Allow global visibility for symbols defined in
* C++ "std" namespace in <iso/wchar_iso.h>.
*/
#if __cplusplus >= 199711L
/* not XPG4 and not XPG4v2 */
#endif /* not XPG4 and not XPG4v2 */
#endif /* __cplusplus >= 199711L */
#ifdef __cplusplus
extern "C" {
#endif
#define _WCTYPE_T
typedef int wctype_t;
#endif
#endif /* !defined(_STRICT_STDC) || defined(_XOPEN_SOURCE)... */
/*
* XPG6 requires that va_list be defined as defined in <stdarg.h>,
* however, inclusion of <stdarg.h> breaks Standard C namespace.
*/
#define _VA_LIST
#endif /* defined(_XPG6) && !defined(_VA_LIST) */
#ifdef __STDC__
#if __cplusplus >= 199711L
#endif
#if __cplusplus >= 199711L
} /* namespace std */
#endif
#endif /* !defined(_STRICT_STDC) || defined(_XOPEN_SOURCE)... */
#if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
#ifndef _LOCALE_T
#define _LOCALE_T
#endif
size_t);
#endif /* defined(_XPG7) || !defined(_STRICT_SYMBOLS) */
#else /* __STDC__ */
extern int iswalpha();
extern int iswupper();
extern int iswlower();
extern int iswdigit();
extern int iswxdigit();
extern int iswalnum();
extern int iswspace();
extern int iswpunct();
extern int iswprint();
extern int iswgraph();
extern int iswcntrl();
extern int iswctype();
extern int wcswidth();
extern int wcwidth();
#endif /* !defined(_STRICT_STDC) || defined(_XOPEN_SOURCE)... */
#if defined(_XGP7) || !defined(_STRICT_SYMBOLS)
extern int wcscoll_l();
extern int wcscasecmp();
extern int wcscasecmp_l();
extern int wcsncasecmp();
extern int wcsncasecmp_l();
extern size_t mbsnrtowcs();
#endif
#endif /* __STDC__ */
#ifdef __cplusplus
}
#endif
#endif /* _WCHAR_H */