libpayload: Fix type issues
There were a number of type issues in libpayload that sneaked in
with 903f8e0
.
- size_t and ssize_t were conflicting with gcc builtins
- some stdint types were used in libpayload but not defined
in our stdint.h
With this patch it's possible to compile libpayload with the
reference toolchain again.
Change-Id: Idd5ccfdd9f3536b36bceca2d101e7405883b10bc
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2903
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
parent
e21f5e1483
commit
c7b6d7db09
|
@ -53,8 +53,8 @@ typedef signed long long s64;
|
||||||
typedef long time_t;
|
typedef long time_t;
|
||||||
typedef long suseconds_t;
|
typedef long suseconds_t;
|
||||||
|
|
||||||
typedef unsigned int size_t;
|
typedef unsigned long size_t;
|
||||||
typedef int ssize_t;
|
typedef long ssize_t;
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL ((void *)0)
|
#define NULL ((void *)0)
|
||||||
|
|
|
@ -29,8 +29,16 @@
|
||||||
|
|
||||||
#ifndef __STDINT_H
|
#ifndef __STDINT_H
|
||||||
#define __STDINT_H
|
#define __STDINT_H
|
||||||
|
|
||||||
#include <arch/types.h>
|
#include <arch/types.h>
|
||||||
|
|
||||||
|
typedef long long int intmax_t;
|
||||||
|
typedef unsigned long long uintmax_t;
|
||||||
|
|
||||||
typedef unsigned long uintptr_t;
|
typedef unsigned long uintptr_t;
|
||||||
typedef long intptr_t;
|
typedef long intptr_t;
|
||||||
|
|
||||||
|
#define UINT32_MAX (4294967295U)
|
||||||
|
#define UINT64_MAX (18446744073709551615ULL)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -53,8 +53,8 @@ typedef signed long long s64;
|
||||||
typedef long time_t;
|
typedef long time_t;
|
||||||
typedef long suseconds_t;
|
typedef long suseconds_t;
|
||||||
|
|
||||||
typedef unsigned int size_t;
|
typedef unsigned long size_t;
|
||||||
typedef int ssize_t;
|
typedef long ssize_t;
|
||||||
|
|
||||||
#ifndef NULL
|
#ifndef NULL
|
||||||
#define NULL ((void *)0)
|
#define NULL ((void *)0)
|
||||||
|
|
Loading…
Reference in New Issue