cdde25b597
made by configure and various related adjustments. This has not yet been tested on cygwin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6001 a1c6a512-1295-4272-9138-f99709370657
48 lines
945 B
C
48 lines
945 B
C
#ifndef _STDIO_H_
|
|
#define _STDIO_H_
|
|
|
|
#include <_ansi.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 snprintf (char *buf, size_t size, const char *fmt, ...);
|
|
int vsnprintf (char *buf, int size, const char *fmt, __VALIST ap);
|
|
|
|
#ifdef SIMULATOR
|
|
typedef void FILE;
|
|
int vfprintf(FILE *stream, const char *format, __VALIST ap);
|
|
#ifdef WIN32
|
|
#define FILENAME_MAX 260 /* ugly hard-coded value of a limit that is set
|
|
in file.h */
|
|
#endif
|
|
#endif
|
|
|
|
#endif /* _STDIO_H_ */
|