diff options
| author | joerg <joerg@NetBSD.org> | 2013-04-16 16:52:13 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2013-04-16 16:52:13 +0000 |
| commit | f53aaff8845c2acf0cbb7de64e7d5a8d17145fce (patch) | |
| tree | 27daefdeeb1c07bc320d9454e41074deea8b2570 /include | |
| parent | 3faaac2ad7231e6003410ea8f33cec90b87397d1 (diff) | |
Add support for wcstoimax_l and friends.
Diffstat (limited to 'include')
| -rw-r--r-- | include/inttypes.h | 13 | ||||
| -rw-r--r-- | include/wchar.h | 12 |
2 files changed, 23 insertions, 2 deletions
diff --git a/include/inttypes.h b/include/inttypes.h index 8c08a403e9d..8ee61b11c72 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -1,4 +1,4 @@ -/* $NetBSD: inttypes.h,v 1.7 2009/11/15 22:21:03 christos Exp $ */ +/* $NetBSD: inttypes.h,v 1.8 2013/04/16 16:52:13 joerg Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -59,6 +59,17 @@ typedef struct { } imaxdiv_t; imaxdiv_t imaxdiv(intmax_t, intmax_t); + +#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE) +# ifndef __LOCALE_T_DECLARED +typedef struct _locale *locale_t; +# define __LOCALE_T_DECLARED +# endif +intmax_t wcstoimax_l(const wchar_t * __restrict, + wchar_t ** __restrict, int, locale_t); +uintmax_t wcstoumax_l(const wchar_t * __restrict, + wchar_t ** __restrict, int, locale_t); +#endif __END_DECLS #endif /* !_INTTYPES_H_ */ diff --git a/include/wchar.h b/include/wchar.h index 1a1f0790b70..6c31fd02f1a 100644 --- a/include/wchar.h +++ b/include/wchar.h @@ -1,4 +1,4 @@ -/* $NetBSD: wchar.h,v 1.31 2013/04/16 11:55:02 joerg Exp $ */ +/* $NetBSD: wchar.h,v 1.32 2013/04/16 16:52:13 joerg Exp $ */ /*- * Copyright (c)1999 Citrus Project, @@ -211,6 +211,16 @@ __END_DECLS typedef struct _locale *locale_t; # define __LOCALE_T_DECLARED # endif +long int wcstol_l(const wchar_t * __restrict, wchar_t ** __restrict, int, + locale_t); +unsigned long int wcstoul_l(const wchar_t * __restrict, + wchar_t ** __restrict, int, locale_t); +/* LONGLONG */ +long long int wcstoll_l(const wchar_t * __restrict, wchar_t ** __restrict, int, + locale_t); +/* LONGLONG */ +unsigned long long int wcstoull_l(const wchar_t * __restrict, + wchar_t ** __restrict, int, locale_t); int wcwidth_l(wchar_t, locale_t); int wcswidth_l(const wchar_t *, size_t, locale_t); #endif |
