This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compiler warning fix for mingw


Check this in.

Robert Collins wrote:

> Changelog:
> 2001-11-08  Robert Collins  <rbtcollins@hotmail.com>
>
>         * include/errno.h: Fix "errno is not a prototype" warning.
>
> Rob
>
> Index: include/errno.h
> ===================================================================
> RCS file: /cvs/src/src/winsup/mingw/include/errno.h,v
> retrieving revision 1.1.1.1
> diff -u -p -r1.1.1.1 errno.h
> --- errno.h     2000/02/17 19:38:31     1.1.1.1
> +++ errno.h     2001/11/07 13:06:45
> @@ -104,7 +104,7 @@ extern "C" {
>  #undef errno
>  extern int errno;
>  #else
> -int*   _errno();
> +int*   _errno(void);
>  #define        errno           (*_errno())
>  #endif

--
Earnie.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]