diff options
Diffstat (limited to 'newlib/libc/machine/spu/vsprintf.c')
-rw-r--r-- | newlib/libc/machine/spu/vsprintf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/machine/spu/vsprintf.c b/newlib/libc/machine/spu/vsprintf.c index 3a45c2b92..154201100 100644 --- a/newlib/libc/machine/spu/vsprintf.c +++ b/newlib/libc/machine/spu/vsprintf.c @@ -19,6 +19,8 @@ typedef struct va_list ap; } c99_vsprintf_t; +#ifndef _REENT_ONLY + int _DEFUN (vsprintf, (str, fmt, ap), char *str _AND @@ -27,6 +29,9 @@ _DEFUN (vsprintf, (str, fmt, ap), { int* ret; c99_vsprintf_t args; + + CHECK_STR_INIT(_REENT); + ret = (int*) &args; args.str = str; @@ -37,3 +42,5 @@ _DEFUN (vsprintf, (str, fmt, ap), return *ret; } + +#endif /* ! _REENT_ONLY */ |