libpayload: Improve compatibility
Define INT_MAX, EOF and make sure size_t is available. Change-Id: I1b4b717d2545ea8312ec52339300307a5bd68f8a Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/104 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
229f7cb6d6
commit
f7b30808f3
|
@ -41,5 +41,6 @@
|
|||
#endif
|
||||
|
||||
#define UINT_MAX (unsigned int)0xffffffff
|
||||
#define INT_MAX (unsigned int)0x7fffffff
|
||||
|
||||
#endif
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#ifndef _LIBPAYLOAD_STDARG_H
|
||||
#define _LIBPAYLOAD_STDARG_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include_next <stdarg.h>
|
||||
|
||||
/**
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
#include <stddef.h>
|
||||
|
||||
#define EOF (-1)
|
||||
|
||||
typedef struct _FILE FILE;
|
||||
|
||||
extern FILE *stdout, *stdin, *stderr;
|
||||
|
|
Loading…
Reference in New Issue