diff options
| author | Steve Bavin <pondlife@pondlife.me> | 2006-10-16 09:06:19 +0000 |
|---|---|---|
| committer | Steve Bavin <pondlife@pondlife.me> | 2006-10-16 09:06:19 +0000 |
| commit | 2161407c6ed96f2bea892b89b2b86c9cf7a465ae (patch) | |
| tree | 661757e4899545d407eeff037699338904475c22 /firmware/common/sprintf.c | |
| parent | 7c9230c64f5b4b3aba0baf4fb9ae6d38fd8ae6c2 (diff) | |
| download | rockbox-2161407c6ed96f2bea892b89b2b86c9cf7a465ae.zip rockbox-2161407c6ed96f2bea892b89b2b86c9cf7a465ae.tar.gz rockbox-2161407c6ed96f2bea892b89b2b86c9cf7a465ae.tar.bz2 rockbox-2161407c6ed96f2bea892b89b2b86c9cf7a465ae.tar.xz | |
Cygwin-built simulator can produce garbled debugging output without our snprintf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11235 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/sprintf.c')
| -rw-r--r-- | firmware/common/sprintf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c index 533c74e..79db758 100644 --- a/firmware/common/sprintf.c +++ b/firmware/common/sprintf.c @@ -156,9 +156,10 @@ static int format( return ok; /* true means good */ } -#ifndef SIMULATOR +#if !defined(SIMULATOR) || !defined(linux) /* ALSA library requires a more advanced snprintf, so let's not - override it in simulator */ + override it in simulator for Linux. Note that Cygwin requires + our snprintf or it produces garbled output after a while. */ struct for_snprintf { unsigned char *ptr; /* where to store it */ @@ -216,7 +217,7 @@ int vsnprintf(char *buf, int size, const char *fmt, va_list ap) return pr.bytes; } -#endif /* SIMULATOR */ +#endif /* Linux SIMULATOR */ struct for_fprintf { int fd; /* where to store it */ |