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>
This commit is contained in:
parent
134c30761e
commit
15f917e227
1 changed files with 0 additions and 12 deletions
|
@ -99,23 +99,11 @@ typedef uint8_t bool;
|
||||||
# define UINT64_MAX (18446744073709551615ULL)
|
# define UINT64_MAX (18446744073709551615ULL)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __x86_64__
|
|
||||||
|
|
||||||
#ifndef UINT64_C
|
|
||||||
#define UINT64_C(c) c ## UL
|
|
||||||
#endif
|
|
||||||
#ifndef PRIu64
|
|
||||||
#define PRIu64 "lu"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#ifndef UINT64_C
|
#ifndef UINT64_C
|
||||||
#define UINT64_C(c) c ## ULL
|
#define UINT64_C(c) c ## ULL
|
||||||
#endif
|
#endif
|
||||||
#ifndef PRIu64
|
#ifndef PRIu64
|
||||||
#define PRIu64 "llu"
|
#define PRIu64 "llu"
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue