Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Also add prototypes for wcwidth_l and wcswidth_l.
details: https://anonhg.NetBSD.org/src/rev/778aac661775
branches: trunk
changeset: 786123:778aac661775
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Apr 16 11:55:02 2013 +0000
description:
Also add prototypes for wcwidth_l and wcswidth_l.
diffstat:
include/wchar.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r d25472614a1a -r 778aac661775 include/wchar.h
--- a/include/wchar.h Tue Apr 16 11:39:13 2013 +0000
+++ b/include/wchar.h Tue Apr 16 11:55:02 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wchar.h,v 1.30 2011/07/17 20:54:34 joerg Exp $ */
+/* $NetBSD: wchar.h,v 1.31 2013/04/16 11:55:02 joerg Exp $ */
/*-
* Copyright (c)1999 Citrus Project,
@@ -206,4 +206,13 @@
#define putwc(wc, f) fputwc((wc), (f))
#define putwchar(wc) putwc((wc), stdout)
+#if (_POSIX_C_SOURCE - 0) >= 200809L || defined(_NETBSD_SOURCE)
+# ifndef __LOCALE_T_DECLARED
+typedef struct _locale *locale_t;
+# define __LOCALE_T_DECLARED
+# endif
+int wcwidth_l(wchar_t, locale_t);
+int wcswidth_l(const wchar_t *, size_t, locale_t);
+#endif
+
#endif /* !_WCHAR_H_ */
Home |
Main Index |
Thread Index |
Old Index