From: dannysmith Date: Sat, 14 Jun 2008 09:13:37 +0000 (+0000) Subject: Committed as obvious. X-Git-Tag: cgen-snapshot-20091101~6493 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=8a9eaa227acdb24967c5c0a002e2c37ca1d3519f;p=pf3gnuchains%2Fpf3gnuchains4x.git Committed as obvious. [mingw-Bugs-1801641] * include/wchar.h (_wfdopen): Const-ify second arg. * include/stdio.h (_wfdopen): Likewise. Thanks to --- diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 0cc75f7dfb..012666a161 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,10 @@ +2008-06-14 Danny Smith + + [mingw-Bugs-1801641] + * include/wchar.h (_wfdopen): Const-ify second arg. + * include/stdio.h (_wfdopen): Likewise. + Thanks to + 2008-06-02 Keith Marshall Avoid precision errors in round(), lround() and llround() functions. diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h index 90a6ff5842..45b369ea58 100644 --- a/winsup/mingw/include/stdio.h +++ b/winsup/mingw/include/stdio.h @@ -464,7 +464,7 @@ _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _getws (wchar_t*); _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwc (wint_t, FILE*); _CRTIMP int __cdecl __MINGW_NOTHROW _putws (const wchar_t*); _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t); -_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, wchar_t *); +_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, const wchar_t *); _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfopen (const wchar_t*, const wchar_t*); _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfreopen (const wchar_t*, const wchar_t*, FILE*); _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfsopen (const wchar_t*, const wchar_t*, int); diff --git a/winsup/mingw/include/wchar.h b/winsup/mingw/include/wchar.h index 9109c5e27f..d72527a1fd 100644 --- a/winsup/mingw/include/wchar.h +++ b/winsup/mingw/include/wchar.h @@ -125,7 +125,7 @@ _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t); #ifndef __STRICT_ANSI__ _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW _getws (wchar_t*); _CRTIMP int __cdecl __MINGW_NOTHROW _putws (const wchar_t*); -_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, wchar_t *); +_CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfdopen(int, const wchar_t *); _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfopen (const wchar_t*, const wchar_t*); _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfreopen (const wchar_t*, const wchar_t*, FILE*); _CRTIMP FILE* __cdecl __MINGW_NOTHROW _wfsopen (const wchar_t*, const wchar_t*, int);