diff options
Diffstat (limited to 'firmware')
-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 533c74ed3c..79db758a4b 100644 --- a/firmware/common/sprintf.c +++ b/firmware/common/sprintf.c | |||
@@ -156,9 +156,10 @@ static int format( | |||
156 | return ok; /* true means good */ | 156 | return ok; /* true means good */ |
157 | } | 157 | } |
158 | 158 | ||
159 | #ifndef SIMULATOR | 159 | #if !defined(SIMULATOR) || !defined(linux) |
160 | /* ALSA library requires a more advanced snprintf, so let's not | 160 | /* ALSA library requires a more advanced snprintf, so let's not |
161 | override it in simulator */ | 161 | override it in simulator for Linux. Note that Cygwin requires |
162 | our snprintf or it produces garbled output after a while. */ | ||
162 | 163 | ||
163 | struct for_snprintf { | 164 | struct for_snprintf { |
164 | unsigned char *ptr; /* where to store it */ | 165 | unsigned char *ptr; /* where to store it */ |
@@ -216,7 +217,7 @@ int vsnprintf(char *buf, int size, const char *fmt, va_list ap) | |||
216 | return pr.bytes; | 217 | return pr.bytes; |
217 | } | 218 | } |
218 | 219 | ||
219 | #endif /* SIMULATOR */ | 220 | #endif /* Linux SIMULATOR */ |
220 | 221 | ||
221 | struct for_fprintf { | 222 | struct for_fprintf { |
222 | int fd; /* where to store it */ | 223 | int fd; /* where to store it */ |