Cygwin: fix declaration of __small_{v}sprintf
Both functions are declared as extern "C" functions in sys/smallprint.h, but as C++ funcs in winsup.h and in the source itself. Add extern "C to definitions, remove declarations in winsup.h and include sys/smallprint.h instead. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -130,7 +130,7 @@ __rn (char *dst, int base, int dosign, long long val, int len, int pad, unsigned
|
||||
return dst;
|
||||
}
|
||||
|
||||
int
|
||||
extern "C" int
|
||||
__small_vsprintf (char *dst, const char *fmt, va_list ap)
|
||||
{
|
||||
tmpbuf tmp;
|
||||
@@ -373,7 +373,7 @@ gen_decimalLL:
|
||||
return dst - orig;
|
||||
}
|
||||
|
||||
int
|
||||
extern "C" int
|
||||
__small_sprintf (char *dst, const char *fmt, ...)
|
||||
{
|
||||
int r;
|
||||
|
Reference in New Issue
Block a user