diff options
author | Patrick Rudolph <siro@das-labor.org> | 2018-12-02 11:28:46 +0100 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-12-05 13:27:31 +0000 |
commit | 15f917e22798cc3b4d323ef4d555783a155cf9e3 (patch) | |
tree | dc8e54f38b6cad6974e56f8b7e4adb36689d8eb4 | |
parent | 134c30761e9a1a7c9a89823976b9cbdce11b3fce (diff) |
arch/x86/include/stdint: Fix PRIu64
We alwas define uint64_t as unsigned long long, even on x86_64.
Fix PRIu64 to match the definition of the datatype, to prevent
compilation errors when compiling for x86_64.
Change-Id: I7b10a18eab492f02d39fc2074b47f5fdc7209f3d
Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-on: https://review.coreboot.org/c/30002
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r-- | src/arch/x86/include/stdint.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/arch/x86/include/stdint.h b/src/arch/x86/include/stdint.h index 16f6acd74c..6c400021b0 100644 --- a/src/arch/x86/include/stdint.h +++ b/src/arch/x86/include/stdint.h @@ -99,23 +99,11 @@ typedef uint8_t bool; # define UINT64_MAX (18446744073709551615ULL) #endif -#ifdef __x86_64__ - -#ifndef UINT64_C -#define UINT64_C(c) c ## UL -#endif -#ifndef PRIu64 -#define PRIu64 "lu" -#endif - -#else - #ifndef UINT64_C #define UINT64_C(c) c ## ULL #endif #ifndef PRIu64 #define PRIu64 "llu" -#endif #endif |