libpayload: Add size_t and ssize_t types for ARM and x86

Some new TPM drivers in depthcharge require that type. I added it to
arch/types.h which seemed appropriate, but I'm not sure that's exactly the
right header to use, or in other words if you'd get that type from libpayload
the same way you'd get it if you were building a standard Linux program.

Also, I attempted to determine what underlying types gcc would use, and while
I think I picked the right ones I'm not 100% certain of that either.

Change-Id: Ic5c0b4173c8565ede3bfce8870976d596d69e51d
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://review.coreboot.org/2669
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Gabe Black 2013-02-26 23:18:24 -08:00 committed by Ronald G. Minnich
parent a0e27979c0
commit 903f8e0330
2 changed files with 6 additions and 0 deletions

View File

@ -53,6 +53,9 @@ typedef signed long long s64;
typedef long time_t;
typedef long suseconds_t;
typedef unsigned int size_t;
typedef int ssize_t;
#ifndef NULL
#define NULL ((void *)0)
#endif

View File

@ -53,6 +53,9 @@ typedef signed long long s64;
typedef long time_t;
typedef long suseconds_t;
typedef unsigned int size_t;
typedef int ssize_t;
#ifndef NULL
#define NULL ((void *)0)
#endif