1
0
Fork 0
forked from len0rd/rockbox

This is my initial attempt to get rid of the newlib headers requirement,

for gcc built without newlib.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1017 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-06-15 15:49:32 +00:00
parent 4f58f6197d
commit 7da93d58fd
9 changed files with 457 additions and 0 deletions

41
firmware/include/stdio.h Normal file
View file

@ -0,0 +1,41 @@
#ifndef _STDIO_H_
#define _STDIO_H_
#define __need_size_t
#include <stddef.h>
#define __need___va_list
#include <stdarg.h>
#ifndef NULL
#define NULL 0
#endif
#define EOF (-1)
#ifndef SEEK_SET
#define SEEK_SET 0 /* set file offset to offset */
#endif
#ifndef SEEK_CUR
#define SEEK_CUR 1 /* set file offset to current plus offset */
#endif
#ifndef SEEK_END
#define SEEK_END 2 /* set file offset to EOF plus offset */
#endif
#define TMP_MAX 26
#ifdef __GNUC__
#define __VALIST __gnuc_va_list
#else
#define __VALIST char*
#endif
int _EXFUN(fprintf, (FILE *, const char *, ...));
int _EXFUN(fscanf, (FILE *, const char *, ...));
int _EXFUN(printf, (const char *, ...));
int _EXFUN(vfprintf, (FILE *, const char *, __VALIST));
int _EXFUN(vprintf, (const char *, __VALIST));
int _EXFUN(vsprintf, (char *, const char *, __VALIST));
#endif /* _STDIO_H_ */