diff options
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 | ||