summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-03-16 21:42:22 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-03-16 21:42:22 +0000
commit3f27f7d82cb78e5d95ab0747f6a3124ab8e5a90d (patch)
treee26ee925bed93101ee61e8b453fe6474cec0ca0d /firmware
parent5bbed107ab2041f2a19ac3e526d0431e34abb4fa (diff)
downloadrockbox-3f27f7d82cb78e5d95ab0747f6a3124ab8e5a90d.tar.gz
rockbox-3f27f7d82cb78e5d95ab0747f6a3124ab8e5a90d.zip
only do the fprintf() if not doing a simulator, since this file is used
for the win32 simulator and the fprintf() of Rockbox differs slightly from how the true POSIX one is (the first argument). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3452 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/sprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c
index ddbae9a473..a44ca29560 100644
--- a/firmware/common/sprintf.c
+++ b/firmware/common/sprintf.c
@@ -193,6 +193,8 @@ static int fprfunc(void *pr, unsigned char letter)
}
+#ifndef SIMULATOR
+
int fprintf(int fd, const char *fmt, ...)
{
bool ok;
@@ -208,3 +210,4 @@ int fprintf(int fd, const char *fmt, ...)
return fpr.bytes; /* return 0 on error */
}
+#endif