diff options
author | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2011-12-01 04:13:52 +0400 |
---|---|---|
committer | Chris Sutcliffe <ir0nh34d@users.sourceforge.net> | 2011-12-01 04:13:52 +0400 |
commit | 21224765f156476187f7d90ca1d9e0c43bdfad57 (patch) | |
tree | f6c40794f0437c0315c8fe80ba10b4cc5c234b2c /winsup/mingw | |
parent | a1690e62abbbc14dbd6768fdd2ecca4ef4c9698f (diff) |
2011-11-30 Earnie Boyd <earnie@users.sourceforge.net>
* include/stdio.h (getc, putc, getchar, putchar, fopen64, ftello64): Add
function definitions to fix warnings when building GCC.
Diffstat (limited to 'winsup/mingw')
-rw-r--r-- | winsup/mingw/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/mingw/include/stdio.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index e0cdd738f..d7f7ee65a 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,8 @@ +2011-11-30 Earnie Boyd <earnie@users.sourceforge.net> + + * include/stdio.h (getc, putc, getchar, putchar, fopen64, ftello64): Add + function definitions to fix warnings when building GCC. + 2011-11-30 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com> * tlssup.c (__dyn_tls_init): Reapply patch from 3105314. diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h index d0184c23b..fe9f2b735 100644 --- a/winsup/mingw/include/stdio.h +++ b/winsup/mingw/include/stdio.h @@ -369,6 +369,7 @@ _CRTIMP int __cdecl __MINGW_NOTHROW _flsbuf (int, FILE*); #if !defined _MT +__CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE*); __CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE* __F) { return (--__F->_cnt >= 0) @@ -376,6 +377,7 @@ __CRT_INLINE int __cdecl __MINGW_NOTHROW getc (FILE* __F) : _filbuf (__F); } +__CRT_INLINE int __cdecl __MINGW_NOTHROW putc (int, FILE*); __CRT_INLINE int __cdecl __MINGW_NOTHROW putc (int __c, FILE* __F) { return (--__F->_cnt >= 0) @@ -383,6 +385,7 @@ __CRT_INLINE int __cdecl __MINGW_NOTHROW putc (int __c, FILE* __F) : _flsbuf (__c, __F); } +__CRT_INLINE int __cdecl __MINGW_NOTHROW getchar (void); __CRT_INLINE int __cdecl __MINGW_NOTHROW getchar (void) { return (--stdin->_cnt >= 0) @@ -390,6 +393,7 @@ __CRT_INLINE int __cdecl __MINGW_NOTHROW getchar (void) : _filbuf (stdin); } +__CRT_INLINE int __cdecl __MINGW_NOTHROW putchar(int); __CRT_INLINE int __cdecl __MINGW_NOTHROW putchar(int __c) { return (--stdout->_cnt >= 0) @@ -532,6 +536,7 @@ _CRTIMP int __cdecl __MINGW_NOTHROW fileno (FILE*); #if defined (__MSVCRT__) && !defined (__NO_MINGW_LFS) #include <sys/types.h> +__CRT_INLINE FILE* __cdecl __MINGW_NOTHROW fopen64 (const char*, const char*); __CRT_INLINE FILE* __cdecl __MINGW_NOTHROW fopen64 (const char* filename, const char* mode) { return fopen (filename, mode); @@ -544,6 +549,7 @@ int __cdecl __MINGW_NOTHROW __mingw_fseeko64 (FILE *, off64_t, int); #define fseeko64(fp, offset, whence) __mingw_fseeko64(fp, offset, whence) #endif +__CRT_INLINE off64_t __cdecl __MINGW_NOTHROW ftello64 (FILE *); __CRT_INLINE off64_t __cdecl __MINGW_NOTHROW ftello64 (FILE * stream) { fpos_t pos; |