diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-13 18:13:52 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-13 18:13:52 +0000 |
commit | 93ae206d29a685964b804442570adc0c66d857cb (patch) | |
tree | 48c6d9cc90878537760c02908cc88121908f0a99 /include/inttypes.h | |
parent | df9fbee3198f44842378f355051233c8baa61ec5 (diff) |
Add wcstoimax(3) and wcstoumax(3).
ok miod@
Diffstat (limited to 'include/inttypes.h')
-rw-r--r-- | include/inttypes.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/inttypes.h b/include/inttypes.h index 78bd7f65946..8e26c3bf891 100644 --- a/include/inttypes.h +++ b/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 <Todd.Miller@courtesan.com> @@ -21,6 +21,10 @@ #include <sys/stdint.h> +#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_ */ |