From ad3d864ca0e1f4735998863646cfeacf235fe2cb Mon Sep 17 00:00:00 2001 From: Janusz Jankowski Date: Wed, 30 Jan 2019 06:47:11 +0100 Subject: [PATCH] rimage: elf.h: use stdint --- rimage/elf.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/rimage/elf.h b/rimage/elf.h index d4f3955c2..aae7d92bc 100644 --- a/rimage/elf.h +++ b/rimage/elf.h @@ -50,15 +50,17 @@ * not include the padding. */ -typedef unsigned __int64 uint64; -typedef unsigned __int32 uint32; -typedef unsigned __int16 uint16; -typedef unsigned __int8 uint8; +#include -typedef __int64 int64; -typedef __int32 int32; -typedef __int16 int16; -typedef __int8 int8; +typedef uint64_t uint64; +typedef uint32_t uint32; +typedef uint16_t uint16; +typedef uint8_t uint8; + +typedef int64_t int64; +typedef int32_t int32; +typedef int16_t int16; +typedef int8_t int8; typedef struct { @@ -958,4 +960,4 @@ typedef struct { #define ELF32PHDRSIZE sizeof(Elf32_Phdr) #define ELF32SHDRSIZE sizeof(Elf32_Shdr) #define ELF32SYMSIZE sizeof(Elf32_Sym) -#define ELF32RELSIZE 8 \ No newline at end of file +#define ELF32RELSIZE 8