summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-25 12:36:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-25 12:36:14 +0000
commit004f690405685cbfdc4a37346dac89a2394abc97 (patch)
tree04f535fb9f51f7e8350fd32e2ed39efad469d81d
parenta6b8bdfbd5e0a3de070b28d191b88fb7663d0e1a (diff)
use the rockbox versions of the sprintf* and friends
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3611 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--uisimulator/x11/Makefile4
-rw-r--r--uisimulator/x11/sprintf.h7
2 files changed, 8 insertions, 3 deletions
diff --git a/uisimulator/x11/Makefile b/uisimulator/x11/Makefile
index 72862aae2c..2299be371d 100644
--- a/uisimulator/x11/Makefile
+++ b/uisimulator/x11/Makefile
@@ -31,8 +31,8 @@ endif
PREVAPPDIR= ..
FIRMWAREDIR = ../../firmware
+COMMON = $(FIRMWAREDIR)/common
DRIVERS = $(FIRMWAREDIR)/drivers
-LIBMADDIR = $(PREVAPPDIR)/common/libmad
TOOLSDIR = ../../tools
DOCSDIR = ../../docs
@@ -88,7 +88,7 @@ else
LCDSRSC = lcd-playersim.c lcd-player.c font-player.c lcd-player-charset.c
endif
FIRMSRCS = $(LCDSRSC) id3.c debug.c usb.c mpeg.c power.c\
- powermgmt.c panic.c mp3data.c
+ powermgmt.c panic.c mp3data.c sprintf.c
APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
playlist.c wps.c wps-display.c settings.c status.c icons.c\
diff --git a/uisimulator/x11/sprintf.h b/uisimulator/x11/sprintf.h
index 16c42333a3..5daa037cea 100644
--- a/uisimulator/x11/sprintf.h
+++ b/uisimulator/x11/sprintf.h
@@ -1,5 +1,10 @@
#include <stdarg.h>
#include <stdio.h>
-int snprintf (char *buf, size_t size, const char *fmt, ...);
+int rockbox_snprintf (char *buf, int size, const char *fmt, ...);
+int rockbox_vsnprintf (char *buf, int size, const char *fmt, va_list ap);
+int rockbox_fprintf (int fd, const char *fmt, ...);
+#define snprintf rockbox_snprintf
+#define vsnprintf rockbox_vsnprintf
+#define fprintf rockbox_fprintf