diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-06 21:04:40 +0000 |
commit | 50a6ca39ad4ed01922aa4f755f0ca579788226cf (patch) | |
tree | c7881b015b220558167310345b162324c96be15a /firmware/include/stdio.h | |
parent | adb506df14aded06ed6e9ebf8540e6fd383ffd6a (diff) | |
download | rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.tar.gz rockbox-50a6ca39ad4ed01922aa4f755f0ca579788226cf.zip |
Move c/h files implementing/defining standard library stuff into a new libc directory, also standard'ify some parts of the code base (almost entirely #include fixes).
This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/stdio.h')
-rw-r--r-- | firmware/include/stdio.h | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/firmware/include/stdio.h b/firmware/include/stdio.h deleted file mode 100644 index 6ae2ff603a..0000000000 --- a/firmware/include/stdio.h +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | #ifndef _STDIO_H_ | ||
2 | #define _STDIO_H_ | ||
3 | |||
4 | #include <_ansi.h> | ||
5 | |||
6 | #define __need_size_t | ||
7 | #include <stddef.h> | ||
8 | |||
9 | #define __need___va_list | ||
10 | #include <stdarg.h> | ||
11 | |||
12 | #ifndef NULL | ||
13 | #define NULL 0 | ||
14 | #endif | ||
15 | |||
16 | #define EOF (-1) | ||
17 | |||
18 | #ifndef SEEK_SET | ||
19 | #define SEEK_SET 0 /* set file offset to offset */ | ||
20 | #endif | ||
21 | #ifndef SEEK_CUR | ||
22 | #define SEEK_CUR 1 /* set file offset to current plus offset */ | ||
23 | #endif | ||
24 | #ifndef SEEK_END | ||
25 | #define SEEK_END 2 /* set file offset to EOF plus offset */ | ||
26 | #endif | ||
27 | |||
28 | #define TMP_MAX 26 | ||
29 | |||
30 | #ifdef __GNUC__ | ||
31 | #define __VALIST __gnuc_va_list | ||
32 | #else | ||
33 | #define __VALIST char* | ||
34 | #endif | ||
35 | |||
36 | int snprintf (char *buf, size_t size, const char *fmt, ...); | ||
37 | int vsnprintf (char *buf, int size, const char *fmt, __VALIST ap); | ||
38 | |||
39 | #ifdef SIMULATOR | ||
40 | typedef void FILE; | ||
41 | int vfprintf(FILE *stream, const char *format, __VALIST ap); | ||
42 | #ifdef WIN32 | ||
43 | #define FILENAME_MAX 260 /* ugly hard-coded value of a limit that is set | ||
44 | in file.h */ | ||
45 | #endif | ||
46 | #endif | ||
47 | |||
48 | #endif /* _STDIO_H_ */ | ||