xiaoxiang781216 commented on code in PR #20529: URL: https://github.com/apache/nuttx/pull/20529#discussion_r4225898415
########## include/inttypes.h: ########## @@ -379,8 +379,15 @@ imaxdiv_t imaxdiv(intmax_t number, intmax_t denom); intmax_t strtoimax(FAR const char *nptr, FAR char **endptr, int base); uintmax_t strtoumax(FAR const char *nptr, FAR char **endptr, int base); -intmax_t wcstoimax(FAR const wchar_t *nptr, FAR wchar_t **endptr, int base); -uintmax_t wcstoumax(FAR const wchar_t *nptr, FAR wchar_t **endptr, int base); +/* _wchar_t is the type that wchar_t is defined as. Using it here keeps + * these declarations independent of the order in which <stddef.h>, + * <sys/types.h> and <stdint.h> include each other. Review Comment: could you find a better approach to fix the inclusion order problem instead using _wchar_t directly? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
