From 2bf163391d3e5e90cc295bf34c631fe02ddf7456 Mon Sep 17 00:00:00 2001 From: kettenis <> Date: Tue, 13 Jan 2009 18:13:51 +0000 Subject: [PATCH] Add wcstoimax(3) and wcstoumax(3). ok miod@ --- src/include/inttypes.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/include/inttypes.h b/src/include/inttypes.h index 78bd7f65..8e26c3bf 100644 --- a/src/include/inttypes.h +++ b/src/include/inttypes.h @@ -1,4 +1,4 @@ -/* $OpenBSD: inttypes.h,v 1.9 2006/01/15 00:47:51 millert Exp $ */ +/* $OpenBSD: inttypes.h,v 1.10 2009/01/13 18:13:51 kettenis Exp $ */ /* * Copyright (c) 1997, 2005 Todd C. Miller @@ -21,6 +21,10 @@ #include +#ifdef __cplusplus +#define __wchar_t wchar_t +#endif + #if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) /* * 7.8.1 Macros for format specifiers @@ -252,6 +256,10 @@ intmax_t imaxabs(intmax_t); imaxdiv_t imaxdiv(intmax_t, intmax_t); intmax_t strtoimax(const char *, char **, int); uintmax_t strtoumax(const char *, char **, 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_ */