You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/11/19 08:50:06 UTC

[incubator-nuttx] 01/34: include/stdint.h: Use _uintmax_t and _intmax_t from arch types.h

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit c10a8dc73bb581447e77fc51d78c30d31c603d2f
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Nov 5 14:50:02 2020 +0900

    include/stdint.h: Use _uintmax_t and _intmax_t from arch types.h
    
    As we do for other intXX_t types.
---
 include/stdint.h | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/include/stdint.h b/include/stdint.h
index 69c54be..70fa0ec 100644
--- a/include/stdint.h
+++ b/include/stdint.h
@@ -300,13 +300,8 @@ typedef _uint_farptr_t      uint_farptr_t;
 
 /* Greatest-width integer types */
 
-#ifdef __INT64_DEFINED
-typedef _int64_t            intmax_t;
-typedef _uint64_t           uintmax_t;
-#else
-typedef _int32_t            intmax_t;
-typedef _uint32_t           uintmax_t;
-#endif
+typedef _intmax_t           intmax_t;
+typedef _uintmax_t          uintmax_t;
 
 #endif /* CONFIG_ARCH_STDINT_H */
 #endif /* __INCLUDE_STDINT_H */