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:36 UTC
[incubator-nuttx] 31/34: sim: Add _intmax_t and _uintmax_t
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 c97f6f1b59a503758e3c5dd151f89f669654b3c2
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Wed Nov 18 21:28:45 2020 +0900
sim: Add _intmax_t and _uintmax_t
---
arch/sim/include/types.h | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/arch/sim/include/types.h b/arch/sim/include/types.h
index d9d4fd3..1baf4a7 100644
--- a/arch/sim/include/types.h
+++ b/arch/sim/include/types.h
@@ -76,6 +76,14 @@ typedef signed long long _int64_t;
typedef unsigned long long _uint64_t;
#define __INT64_DEFINED
+#if defined(__APPLE_CC__)
+typedef signed long _intmax_t;
+typedef unsigned long _uintmax_t;
+#else
+typedef _int64_t _intmax_t;
+typedef _uint64_t _uintmax_t;
+#endif
+
#if defined(CONFIG_HOST_X86_64) && !defined(CONFIG_SIM_M32)
/* 64-bit build on 64-bit machine: A size is 8 bytes */