This is the mail archive of the cygwin@sources.redhat.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: cygwin_dll.h type mismatch in Cygwin 1.1.4


Fixed in snapshots.

--Chuck


Clark Cooper wrote:
> 
> In /usr/include/cygwin/cygwin_dll.h from Cygwin release 1.1.4, the
> DECLARE_CYGWIN_DLL macro declares:
> 
> int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr);
> 
> but defines it with:
> 
> int WINAPI _cygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr) ...
> 
> This leads to a fatal error due to the type mismatch on my Windows NT 4.0
> system. The following patch fixes the problem on my system
> 
> *** cygwin_dll.h        Thu Aug  3 20:56:59 2000
> --- d:/cygwin/usr/include/cygwin/cygwin_dll.h   Thu Sep 28 12:20:31 2000
> ***************
> *** 44,50 ****
>                                                                               \
>   static DWORD dll_index;                                                             \
>                                                                               \
> ! int WINAPI _cygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr)         \
>   {                                                                           \
>     int ret;                                                                  \
>     ret = 1;                                                                  \
> --- 44,50 ----
>                                                                               \
>   static DWORD dll_index;                                                             \
>                                                                               \
> ! int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr)            \
>   {                                                                           \
>     int ret;                                                                  \
>     ret = 1;                                                                  \
> 
> --
> Clark Cooper            Software Engineer       Home:   coopercc@netheaven.com
>                         Schenectady, NY USA     Work:   cccooper@ltionline.com
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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