diff options
author | Daniel Stenberg <daniel@haxx.se> | 2006-01-09 11:22:36 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2006-01-09 11:22:36 +0000 |
commit | 0e419987e48b006104748118fa28161484b7dfa1 (patch) | |
tree | 45c1c1fe81309615e1e6d239183b677be90feb41 /uisimulator/sdl/sprintf.h | |
parent | d2a10f5676a4ab53aec437bd5976e2aef6bde0a4 (diff) | |
download | rockbox-0e419987e48b006104748118fa28161484b7dfa1.tar.gz rockbox-0e419987e48b006104748118fa28161484b7dfa1.zip |
SDL simulator brought by Nathan Hand and Nick Lanham. This is added as a third
simulator with the hope that once it works fine, we can remove the other two
and only have one unified simulator.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8312 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/sprintf.h')
-rw-r--r-- | uisimulator/sdl/sprintf.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/uisimulator/sdl/sprintf.h b/uisimulator/sdl/sprintf.h new file mode 100644 index 0000000000..64a22f3c6e --- /dev/null +++ b/uisimulator/sdl/sprintf.h | |||
@@ -0,0 +1,12 @@ | |||
1 | #include <stdarg.h> | ||
2 | #include <stdio.h> | ||
3 | |||
4 | int rockbox_snprintf (char *buf, size_t size, const char *fmt, ...); | ||
5 | int rockbox_vsnprintf (char *buf, int size, const char *fmt, va_list ap); | ||
6 | int rockbox_fprintf (int fd, const char *fmt, ...); | ||
7 | |||
8 | #ifndef NO_REDEFINES_PLEASE | ||
9 | #define snprintf rockbox_snprintf | ||
10 | #define vsnprintf rockbox_vsnprintf | ||
11 | #define fprintf rockbox_fprintf | ||
12 | #endif | ||