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:
Nicolas Pitre 2019-05-17 15:15:24 -04:00 committed by Anas Nashif
commit 9bd9b7586d
3 changed files with 19 additions and 4 deletions

View file

@ -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
}
/*