diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2007-10-04 00:45:58 +0400 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2007-10-04 00:45:58 +0400 |
commit | b980db14b822420920ec876db23459f56509212c (patch) | |
tree | cc97d89b4e42518238f9e071faca8096f96f8479 /winsup | |
parent | 08a0c88da5f52f43b4c995984a91257b5ce352dd (diff) |
2007-10-03 Danny Smith <dannysmith@users.sourceforge.net>
* mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/mingw/ChangeLog | 4 | ||||
-rwxr-xr-x | winsup/mingw/mingwex/gdtoa/mingw_snprintf.c | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 371278f20..732471f6b 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,7 @@ +2007-10-03 Danny Smith <dannysmith@users.sourceforge.net> + + * mingwex/gdtoa/mingw_snprintf.c: fixed warning during compile. + 2007-10-03 Bernd Becker <hugin@users.sourceforge.net> * include/io.h (__finddata64_t, __wfinddata64_t): changed member 'size' diff --git a/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c b/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c index 5e4e11960..0bdd52f46 100755 --- a/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c +++ b/winsup/mingw/mingwex/gdtoa/mingw_snprintf.c @@ -51,9 +51,7 @@ THIS SOFTWARE. #include "stdlib.h" #endif -#define VA_LIST va_list - -/* #include "stdio1.h" */ +#include <stdio.h> #include "string.h" #include "errno.h" @@ -104,8 +102,10 @@ THIS SOFTWARE. # define Snprintf __mingw_snprintf # define Vsnprintf __mingw_vsnprintf -int __cdecl snprintf()__attribute__((alias("__mingw_snprintf"))); -int __cdecl vsnprintf()__attribute__((alias("__mingw_vsnprintf"))); +int __cdecl __MINGW_NOTHROW +snprintf(char *, size_t, const char *, ...) __attribute__((alias("__mingw_snprintf"))); +int __cdecl __MINGW_NOTHROW +vsnprintf (char *, size_t, const char *, __VALIST) __attribute__((alias("__mingw_vsnprintf"))); static char* __ldtoa (long double ld, int mode, int ndig, int *decpt, |