diff options
| -rw-r--r-- | firmware/common/sprintf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/common/sprintf.c b/firmware/common/sprintf.c index d1c55d5..533c74e 100644 --- a/firmware/common/sprintf.c +++ b/firmware/common/sprintf.c @@ -156,6 +156,10 @@ static int format( return ok; /* true means good */ } +#ifndef SIMULATOR +/* ALSA library requires a more advanced snprintf, so let's not + override it in simulator */ + struct for_snprintf { unsigned char *ptr; /* where to store it */ int bytes; /* amount already stored */ @@ -212,6 +216,8 @@ int vsnprintf(char *buf, int size, const char *fmt, va_list ap) return pr.bytes; } +#endif /* SIMULATOR */ + struct for_fprintf { int fd; /* where to store it */ int bytes; /* amount stored */ |