#ifndef _ISO_WCHAR_ISO_H
#define _ISO_WCHAR_ISO_H
#include <sys/feature_tests.h>
#include <sys/null.h>
#include <stdio_tag.h>
#include <wchar_impl.h>
#include <iso/time_iso.h>
#if (defined(__cplusplus) && (__cplusplus - 0 < 54321L)) || \
(!defined(__cplusplus) && !defined(_STRICT_STDC)) || \
defined(__EXTENSIONS__)
#include <stdio.h>
#endif
#if !defined(_STRICT_STDC) || defined(__EXTENSIONS__)
#include <ctype.h>
#include <stddef.h>
#endif
#include <sys/va_list.h>
#ifdef __cplusplus
extern "C" {
#endif
#if __cplusplus >= 199711L
namespace std {
#endif
#if !defined(__cplusplus) || (__cplusplus < 199711L && !defined(__GNUG__))
#ifndef _WCHAR_T
#define _WCHAR_T
#if defined(_LP64)
typedef int wchar_t;
#else
typedef long wchar_t;
#endif
#endif
#endif
#if !defined(_WINT_T) || __cplusplus >= 199711L
#define _WINT_T
#if defined(_LP64)
typedef int wint_t;
#else
typedef long wint_t;
#endif
#endif
#if !defined(_SIZE_T) || __cplusplus >= 199711L
#define _SIZE_T
#if defined(_LP64)
typedef unsigned long size_t;
#else
typedef unsigned int size_t;
#endif
#endif
#ifndef WEOF
#if __cplusplus >= 199711L
#define WEOF ((std::wint_t)(-1))
#else
#define WEOF ((wint_t)(-1))
#endif
#endif
#if !defined(_XPG4) || defined(_XPG5)
#ifndef WCHAR_MAX
#define WCHAR_MAX 2147483647
#endif
#ifndef WCHAR_MIN
#define WCHAR_MIN (-2147483647-1)
#endif
#endif
#if !defined(_MBSTATE_T) || __cplusplus >= 199711L
#define _MBSTATE_T
typedef __mbstate_t mbstate_t;
#endif
#if defined(_XPG4) && !defined(_FILEDEFED) || __cplusplus >= 199711L
#define _FILEDEFED
typedef __FILE FILE;
#endif
#if !defined(_LP64) && !defined(_LONGLONG_TYPE)
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname fwprintf _fwprintf_c89
#pragma redefine_extname swprintf _swprintf_c89
#pragma redefine_extname vfwprintf _vfwprintf_c89
#pragma redefine_extname vswprintf _vswprintf_c89
#pragma redefine_extname vwprintf _vwprintf_c89
#pragma redefine_extname wprintf _wprintf_c89
#pragma redefine_extname fwscanf _fwscanf_c89
#pragma redefine_extname swscanf _swscanf_c89
#pragma redefine_extname wscanf _wscanf_c89
#else
#define fwprintf _fwprintf_c89
#define swprintf _swprintf_c89
#define vfwprintf _vfwprintf_c89
#define vswprintf _vswprintf_c89
#define vwprintf _vwprintf_c89
#define wprintf _wprintf_c89
#define fwscanf _fwscanf_c89
#define swscanf _swscanf_c89
#define wscanf _wscanf_c89
#endif
#endif
#if (!defined(_MSE_INT_H))
#if !defined(_XPG4) || defined(_XPG5)
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname fgetwc __fgetwc_xpg5
#pragma redefine_extname getwc __getwc_xpg5
#pragma redefine_extname getwchar __getwchar_xpg5
#pragma redefine_extname fputwc __fputwc_xpg5
#pragma redefine_extname putwc __putwc_xpg5
#pragma redefine_extname putwchar __putwchar_xpg5
#pragma redefine_extname fgetws __fgetws_xpg5
#pragma redefine_extname fputws __fputws_xpg5
#pragma redefine_extname ungetwc __ungetwc_xpg5
#else
extern wint_t __fgetwc_xpg5(__FILE *);
extern wint_t __getwc_xpg5(__FILE *);
extern wint_t __getwchar_xpg5(void);
extern wint_t __fputwc_xpg5(wint_t, __FILE *);
extern wint_t __putwc_xpg5(wint_t, __FILE *);
extern wint_t __putwchar_xpg5(wint_t);
extern wchar_t *__fgetws_xpg5(wchar_t *_RESTRICT_KYWD, int,
__FILE *_RESTRICT_KYWD);
extern int __fputws_xpg5(const wchar_t *_RESTRICT_KYWD, __FILE *_RESTRICT_KYWD);
extern wint_t __ungetwc_xpg5(wint_t, __FILE *);
#define fgetwc __fgetwc_xpg5
#define getwc __getwc_xpg5
#define getwchar __getwchar_xpg5
#define fputwc __fputwc_xpg5
#define putwc __putwc_xpg5
#define putwchar __putwchar_xpg5
#define fgetws __fgetws_xpg5
#define fputws __fputws_xpg5
#define ungetwc __ungetwc_xpg5
#endif
#endif
#endif
extern wint_t fgetwc(__FILE *);
extern wchar_t *fgetws(wchar_t *_RESTRICT_KYWD, int, __FILE *_RESTRICT_KYWD);
extern wint_t fputwc(wint_t, __FILE *);
extern int fputws(const wchar_t *_RESTRICT_KYWD, __FILE *_RESTRICT_KYWD);
extern wint_t ungetwc(wint_t, __FILE *);
extern wint_t getwc(__FILE *);
extern wint_t getwchar(void);
extern wint_t putwc(wint_t, __FILE *);
extern wint_t putwchar(wint_t);
extern double wcstod(const wchar_t *_RESTRICT_KYWD, wchar_t **_RESTRICT_KYWD);
extern long wcstol(const wchar_t *_RESTRICT_KYWD, wchar_t **_RESTRICT_KYWD,
int);
extern unsigned long wcstoul(const wchar_t *_RESTRICT_KYWD,
wchar_t **_RESTRICT_KYWD, int);
extern wchar_t *wcscat(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD);
extern int wcscmp(const wchar_t *, const wchar_t *);
extern int wcscoll(const wchar_t *, const wchar_t *);
extern wchar_t *wcscpy(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD);
extern size_t wcscspn(const wchar_t *, const wchar_t *);
extern size_t wcslen(const wchar_t *);
extern wchar_t *wcsncat(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
size_t);
extern int wcsncmp(const wchar_t *, const wchar_t *, size_t);
extern wchar_t *wcsncpy(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
size_t);
extern size_t wcsspn(const wchar_t *, const wchar_t *);
extern size_t wcsxfrm(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
size_t);
#if __cplusplus >= 199711L
extern const wchar_t *wcschr(const wchar_t *, wchar_t);
extern "C++" {
inline wchar_t *wcschr(wchar_t *__ws, wchar_t __wc) {
return (wchar_t *)wcschr((const wchar_t *)__ws, __wc);
}
}
extern const wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
extern "C++" {
inline wchar_t *wcspbrk(wchar_t *__ws1, const wchar_t *__ws2) {
return (wchar_t *)wcspbrk((const wchar_t *)__ws1, __ws2);
}
}
extern const wchar_t *wcsrchr(const wchar_t *, wchar_t);
extern "C++" {
inline wchar_t *wcsrchr(wchar_t *__ws, wchar_t __wc) {
return (wchar_t *)wcsrchr((const wchar_t *)__ws, __wc);
}
}
#else
extern wchar_t *wcschr(const wchar_t *, wchar_t);
extern wchar_t *wcspbrk(const wchar_t *, const wchar_t *);
extern wchar_t *wcsrchr(const wchar_t *, wchar_t);
#endif
#if (!defined(_MSE_INT_H))
#if defined(_XPG4) && !defined(_XPG5)
extern wchar_t *wcstok(wchar_t *, const wchar_t *);
extern size_t wcsftime(wchar_t *, size_t, const char *, const struct tm *);
#else
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname wcstok __wcstok_xpg5
#pragma redefine_extname wcsftime __wcsftime_xpg5
extern wchar_t *wcstok(wchar_t *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
wchar_t **_RESTRICT_KYWD);
extern size_t wcsftime(wchar_t *_RESTRICT_KYWD, size_t,
const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
#else
extern wchar_t *__wcstok_xpg5(wchar_t *_RESTRICT_KYWD,
const wchar_t *_RESTRICT_KYWD, wchar_t **_RESTRICT_KYWD);
extern size_t __wcsftime_xpg5(wchar_t *_RESTRICT_KYWD, size_t,
const wchar_t *_RESTRICT_KYWD, const struct tm *_RESTRICT_KYWD);
#define wcstok __wcstok_xpg5
#define wcsftime __wcsftime_xpg5
#endif
#endif
#endif
#if !defined(_XPG4) || defined(_XPG5)
extern wint_t btowc(int);
extern int fwprintf(__FILE *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
...);
extern int fwscanf(__FILE *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
...);
extern int fwide(__FILE *, int);
extern int mbsinit(const mbstate_t *);
extern size_t mbrlen(const char *_RESTRICT_KYWD, size_t,
mbstate_t *_RESTRICT_KYWD);
extern size_t mbrtowc(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
size_t, mbstate_t *_RESTRICT_KYWD);
extern size_t mbsrtowcs(wchar_t *_RESTRICT_KYWD, const char **_RESTRICT_KYWD,
size_t, mbstate_t *_RESTRICT_KYWD);
extern int swprintf(wchar_t *_RESTRICT_KYWD, size_t,
const wchar_t *_RESTRICT_KYWD, ...);
extern int swscanf(const wchar_t *_RESTRICT_KYWD,
const wchar_t *_RESTRICT_KYWD, ...);
extern int vfwprintf(__FILE *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
__va_list);
extern int vwprintf(const wchar_t *_RESTRICT_KYWD, __va_list);
extern int vswprintf(wchar_t *_RESTRICT_KYWD, size_t,
const wchar_t *_RESTRICT_KYWD, __va_list);
extern size_t wcrtomb(char *_RESTRICT_KYWD, wchar_t,
mbstate_t *_RESTRICT_KYWD);
extern size_t wcsrtombs(char *_RESTRICT_KYWD, const wchar_t **_RESTRICT_KYWD,
size_t, mbstate_t *_RESTRICT_KYWD);
#if defined(_XPG7) || !defined(_STRICT_SYMBOLS)
extern size_t wcsnrtombs(char *_RESTRICT_KYWD, const wchar_t **_RESTRICT_KYWD,
size_t, size_t, mbstate_t *_RESTRICT_KYWD);
#endif
extern int wctob(wint_t);
extern int wmemcmp(const wchar_t *, const wchar_t *, size_t);
extern wchar_t *wmemcpy(wchar_t *_RESTRICT_KYWD,
const wchar_t *_RESTRICT_KYWD, size_t);
extern wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t);
extern wchar_t *wmemset(wchar_t *, wchar_t, size_t);
extern int wprintf(const wchar_t *_RESTRICT_KYWD, ...);
extern int wscanf(const wchar_t *_RESTRICT_KYWD, ...);
#if __cplusplus >= 199711L
extern const wchar_t *wcsstr(const wchar_t *, const wchar_t *);
extern "C++" {
inline wchar_t *wcsstr(wchar_t *__ws1, const wchar_t *__ws2) {
return (wchar_t *)wcsstr((const wchar_t *)__ws1, __ws2);
}
}
extern const wchar_t *wmemchr(const wchar_t *, wchar_t, size_t);
extern "C++" {
inline wchar_t *wmemchr(wchar_t *__ws, wchar_t __wc, size_t __n) {
return (wchar_t *)wmemchr((const wchar_t *)__ws, __wc, __n);
}
}
#else
extern wchar_t *wcsstr(const wchar_t *_RESTRICT_KYWD,
const wchar_t *_RESTRICT_KYWD);
extern wchar_t *wmemchr(const wchar_t *, wchar_t, size_t);
#endif
#endif
#if __cplusplus >= 199711L
}
#endif
#ifdef __cplusplus
}
#endif
#endif