Module Name: src
Committed By: joerg
Date: Tue Apr 16 11:55:03 UTC 2013
Modified Files:
src/include: wchar.h
Log Message:
Also add prototypes for wcwidth_l and wcswidth_l.
To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/include/wchar.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/wchar.h
diff -u src/include/wchar.h:1.30 src/include/wchar.h:1.31
--- src/include/wchar.h:1.30 Sun Jul 17 20:54:34 2011
+++ src/include/wchar.h Tue Apr 16 11:55:02 2013
@@ -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 @@ __END_DECLS
#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_ */