diff options
author | Simon Glass <sjg@chromium.org> | 2020-06-02 19:26:44 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-08 17:21:46 -0400 |
commit | 3428faf23af5079e80c53d0d8473af30d3c19fca (patch) | |
tree | 77634e4cb1e1356d3eacadff0ba89151dd305ea1 /include/compiler.h | |
parent | 84dd1902443cf500b2536eeb14d6662c6b502698 (diff) | |
download | u-boot-3428faf23af5079e80c53d0d8473af30d3c19fca.tar.gz u-boot-3428faf23af5079e80c53d0d8473af30d3c19fca.tar.bz2 u-boot-3428faf23af5079e80c53d0d8473af30d3c19fca.zip |
Update MEM_SUPPORT_64BIT_DATA to be always defined
Define this macro always so we don't need the preprocessor to check it.
Convert the users to #if instead of #ifdef.
Note that '#if MEM_SUPPORT_64BIT_DATA' does not give an error if the
macro is not define. It just assumes zero.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/compiler.h')
-rw-r--r-- | include/compiler.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/compiler.h b/include/compiler.h index ed74c272b8..90b7afae53 100644 --- a/include/compiler.h +++ b/include/compiler.h @@ -145,7 +145,9 @@ typedef unsigned long int uintptr_t; #define unlikely(x) __builtin_expect(!!(x), 0) #ifdef __LP64__ -#define MEM_SUPPORT_64BIT_DATA +#define MEM_SUPPORT_64BIT_DATA 1 +#else +#define MEM_SUPPORT_64BIT_DATA 0 #endif #endif |