From 3f27f7d82cb78e5d95ab0747f6a3124ab8e5a90d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 16 Mar 2003 21:42:22 +0000 Subject: 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 --- firmware/common/sprintf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware') 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 -- cgit v1.2.3