mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
arch: Customize the typedef of size_t instead of intptr_t
To ensure size_t same as toolchain definition in the first place and rename CXX_NEWLONG to ARCH_SIZET_LONG. The change also check whether __SIZE_TYPE__ exist before CONFIG_ARCH_SIZET_LONG so our definition can align with toolchain(gcc/clang) definition automatically.
This commit is contained in:
@@ -156,6 +156,14 @@ config ARCH_GNU_NO_WEAKFUNCTIONS
|
||||
---help---
|
||||
Disable support for weak functions.
|
||||
|
||||
config ARCH_SIZET_LONG
|
||||
bool "size_t is type long"
|
||||
default n
|
||||
---help---
|
||||
size_t may be type long or type int. This matters for some
|
||||
C++ library routines because the NuttX size_t might not have
|
||||
the same underlying type as your toolchain's size_t.
|
||||
|
||||
comment "Architecture Options"
|
||||
|
||||
config ARCH_NOINTC
|
||||
|
||||
Reference in New Issue
Block a user