Avoid multiple link time definitions of _printf() for C++

This commit is contained in:
Keith Marshall 2009-09-01 20:41:55 +00:00
parent d984eb88db
commit 532032a874
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,11 @@
2009-09-01 Keith Marshall <keithmarshall@users.sourceforge.net>
Avoid multiple link time definitions of _printf() for C++;
(problem reported by Alexander Shaduri, via MinGW-users ML).
* include/stdio.h [__USE_MINGW_ANSI_STDIO]:
(__mingw_stdio_redirect__) [__cplusplus]: remove `static' keyword.
2009-08-14 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/_mingw.h: Increment version to 3.16.

View File

@ -220,7 +220,7 @@ extern int __mingw_stdio_redirect__(vsnprintf)(char*, size_t, const char*, __VAL
* For C++ we use inline implementations, to avoid interference
* with namespace qualification, which may result from using #defines.
*/
# define __mingw_stdio_redirect__ static inline __cdecl __MINGW_NOTHROW
# define __mingw_stdio_redirect__ inline __cdecl __MINGW_NOTHROW
# elif defined __GNUC__
/*