From 8c60e29e49dafd3b8b0e59ceafde68039eaf02ae Mon Sep 17 00:00:00 2001 From: dannysmith Date: Mon, 18 Jun 2007 09:50:01 +0000 Subject: [PATCH] * include/stdio.h (vsnprintf): Remove inline definition. Add prototype. --- winsup/mingw/ChangeLog | 9 +++++++-- winsup/mingw/include/stdio.h | 7 +++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 05979a595d..0ccf8d1a87 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,4 +1,9 @@ -2007-06-16 Danny Smith ' +2007-06-18 Danny Smith + + * include/stdio.h (vsnprintf): Remove inline definition. + Add prototype. + +2007-06-16 Danny Smith * CRTfmode.c: Nit-pick comment fix. @@ -10,7 +15,7 @@ * include/string.h (strcasecmp): Fix typo in declaration prototype. -2007-06-14 Danny Smith ' +2007-06-14 Danny Smith * include/io.h (lseek64) : Add prototype. diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h index 23914a3ff1..fb6856f919 100644 --- a/winsup/mingw/include/stdio.h +++ b/winsup/mingw/include/stdio.h @@ -206,10 +206,9 @@ _CRTIMP int __cdecl vsprintf (char*, const char*, __VALIST); _CRTIMP int __cdecl _vsnprintf (char*, size_t, const char*, __VALIST); #ifndef __NO_ISOCEXT /* externs in libmingwex.a */ -int __cdecl snprintf(char* s, size_t n, const char* format, ...); -__CRT_INLINE int __cdecl -vsnprintf (char* s, size_t n, const char* format, __VALIST arg) - { return _vsnprintf ( s, n, format, arg); } +int __cdecl snprintf(char *, size_t, const char *, ...); +int __cdecl vsnprintf (char *, size_t, const char *, __VALIST); + int __cdecl vscanf (const char * __restrict__, __VALIST); int __cdecl vfscanf (FILE * __restrict__, const char * __restrict__, __VALIST); -- 2.11.0