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:
Patrick Georgi 2011-07-12 15:02:04 +02:00 committed by Patrick Georgi
parent 229f7cb6d6
commit f7b30808f3
3 changed files with 4 additions and 0 deletions

View File

@ -41,5 +41,6 @@
#endif
#define UINT_MAX (unsigned int)0xffffffff
#define INT_MAX (unsigned int)0x7fffffff
#endif

View File

@ -30,6 +30,7 @@
#ifndef _LIBPAYLOAD_STDARG_H
#define _LIBPAYLOAD_STDARG_H
#include <stddef.h>
#include_next <stdarg.h>
/**

View File

@ -32,6 +32,8 @@
#include <stddef.h>
#define EOF (-1)
typedef struct _FILE FILE;
extern FILE *stdout, *stdin, *stderr;