From e0b9be3e0f69517ed4d9e05ce2eedb4d2f3e91dd Mon Sep 17 00:00:00 2001 From: guenther Date: Sun, 31 Jul 2022 01:27:31 +0000 Subject: [PATCH] POSIX 2008 TC2 requires to provide wchar_t ok kettenis@ espie@ --- include/inttypes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/inttypes.h b/include/inttypes.h index b8f45071bbb..4f604e94f95 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -1,4 +1,4 @@ -/* $OpenBSD: inttypes.h,v 1.13 2019/01/25 00:19:25 millert Exp $ */ +/* $OpenBSD: inttypes.h,v 1.14 2022/07/31 01:27:31 guenther Exp $ */ /* * Copyright (c) 1997, 2005 Todd C. Miller @@ -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 /* -- 2.20.1