artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd00ace
)
POSIX 2008 TC2 requires <inttypes.h> to provide wchar_t
author
guenther
<guenther@openbsd.org>
Sun, 31 Jul 2022 01:27:31 +0000
(
01:27
+0000)
committer
guenther
<guenther@openbsd.org>
Sun, 31 Jul 2022 01:27:31 +0000
(
01:27
+0000)
ok kettenis@ espie@
include/inttypes.h
patch
|
blob
|
history
diff --git
a/include/inttypes.h
b/include/inttypes.h
index
b8f4507
..
4f604e9
100644
(file)
--- a/
include/inttypes.h
+++ b/
include/inttypes.h
@@
-1,4
+1,4
@@
-/* $OpenBSD: inttypes.h,v 1.1
3 2019/01/25 00:19:25 millert Exp $
*/
+/* $OpenBSD: inttypes.h,v 1.1
4 2022/07/31 01:27:31 guenther Exp $
*/
/*
* Copyright (c) 1997, 2005 Todd C. Miller <millert@openbsd.org>
@@
-23,6
+23,9
@@
#ifdef __cplusplus
#define __wchar_t wchar_t
+#elif __POSIX_VISIBLE >= 200809 && !defined(_WCHAR_T_DEFINED_)
+#define _WCHAR_T_DEFINED_
+typedef __wchar_t wchar_t;
#endif
/*