From fbd8bce8dd17c9bc76b9b9689ac41f7ad2ec96ea Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Wed, 21 Oct 2015 02:03:17 +0200 Subject: [PATCH] : Expose wcstoimax() and wcstoumax() prototypes for C++ too. I don't know why it was explicitly excluded in e2565a420c31. I can only guess that because of the definition of wchar_t being in "#ifndef __cplusplus", it was assumed that these functions (both taking wchar_t's) should get the same treatment. However, the real reason for the wchar_t handling is that wchar_t is a fundamental type in C++, while in C it is not. --- include/inttypes.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/inttypes.h b/include/inttypes.h index 5f7845d81c..064dd15809 100644 --- a/include/inttypes.h +++ b/include/inttypes.h @@ -50,12 +50,10 @@ imaxdiv_t imaxdiv(intmax_t, intmax_t) __pure2; intmax_t strtoimax(const char * __restrict, char ** __restrict, int); uintmax_t strtoumax(const char * __restrict, char ** __restrict, int); -#ifndef __cplusplus intmax_t wcstoimax(const wchar_t * __restrict, wchar_t ** __restrict, int); uintmax_t wcstoumax(const wchar_t * __restrict, wchar_t ** __restrict, int); -#endif __END_DECLS #endif /* !_INTTYPES_H_ */ -- 2.41.0