forked from len0rd/rockbox
Do not use our simple snprintf in simulator, because
ALSA library requires a more advanced one. Fixes the problem with ALSA on Linux. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11206 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
379b91f505
commit
a60bb9a067
1 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue