Kconfig: introduce CONFIG_64BIT
This is the generic symbol to select or otherwise test for when 64-bit compilation is desired. Two trivial usages of this symbol are also included. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
This commit is contained in:
parent
9354bb5af9
commit
9bd9b7586d
3 changed files with 19 additions and 4 deletions
|
@ -84,8 +84,11 @@ volatile size_t size_of_long_variable = sizeof(long_variable);
|
|||
|
||||
void test_stddef(void)
|
||||
{
|
||||
|
||||
#ifdef CONFIG_64BIT
|
||||
zassert_true((size_of_long_variable == 8), "sizeof");
|
||||
#else
|
||||
zassert_true((size_of_long_variable == 4), "sizeof");
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue