diff options
| author | Juli Mallett <jmallett@FreeBSD.org> | 2010-03-31 02:12:24 +0000 |
|---|---|---|
| committer | Juli Mallett <jmallett@FreeBSD.org> | 2010-03-31 02:12:24 +0000 |
| commit | 745b1875349efb7f08020a602f1c6a6c9b9e86c6 (patch) | |
| tree | 963969564d6b66506bab1bc951483497cc43657b /include | |
| parent | 97ae3bc359a20ddde2515d230ad4ceb2dd4a1796 (diff) | |
Notes
Diffstat (limited to 'include')
| -rw-r--r-- | include/inttypes.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/inttypes.h b/include/inttypes.h index 05171a6c9d426..9aad660eb28de 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -32,6 +32,13 @@ #include <machine/_inttypes.h> #include <sys/stdint.h> +#ifndef __cplusplus +#ifndef _WCHAR_T_DECLARED +typedef __wchar_t wchar_t; +#define _WCHAR_T_DECLARED +#endif +#endif + typedef struct { intmax_t quot; /* Quotient. */ intmax_t rem; /* Remainder. */ @@ -43,10 +50,10 @@ imaxdiv_t imaxdiv(intmax_t, intmax_t) __pure2; intmax_t strtoimax(const char * __restrict, char ** __restrict, int); uintmax_t strtoumax(const char * __restrict, char ** __restrict, int); -intmax_t wcstoimax(const __wchar_t * __restrict, - __wchar_t ** __restrict, int); -uintmax_t wcstoumax(const __wchar_t * __restrict, - __wchar_t ** __restrict, int); +intmax_t wcstoimax(const wchar_t * __restrict, + wchar_t ** __restrict, int); +uintmax_t wcstoumax(const wchar_t * __restrict, + wchar_t ** __restrict, int); __END_DECLS #endif /* !_INTTYPES_H_ */ |
