projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4c14151
)
Add missing wcsdup() prototype to <wchar.h>.
author
Sascha Wildner <saw@online.de>
Thu, 10 Mar 2011 21:56:22 +0000 (22:56 +0100)
committer
Sascha Wildner <saw@online.de>
Thu, 10 Mar 2011 21:56:51 +0000 (22:56 +0100)
This allows C++ programs to access this function at all.
Reported-by: Pierre Abbat <phma@phma.optus.nu>
include/wchar.h
patch
|
blob
|
blame
|
history
diff --git
a/include/wchar.h
b/include/wchar.h
index
a02f98d
..
770332b
100644
(file)
--- a/
include/wchar.h
+++ b/
include/wchar.h
@@
-205,6
+205,10
@@
int vswscanf(const wchar_t * __restrict, const wchar_t * __restrict,
__va_list);
int vwscanf(const wchar_t * __restrict, __va_list);
#endif
+
+#if __POSIX_VISIBLE >= 200809 || __BSD_VISIBLE
+wchar_t *wcsdup(const wchar_t *);
+#endif
__END_DECLS
#define getwc(f) fgetwc(f)