| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Thu, 12 Oct 2000 11:45:39 -0400 |
| Message-Id: | <200010121545.LAA00824@coopercc.netheaven.com> |
| X-Authentication-Warning: | coopercc.netheaven.com: ccc set sender to coopercc AT netheaven DOT com using -f |
| From: | Clark Cooper <coopercc AT netheaven DOT com> |
| To: | cygwin AT sourceware DOT cygnus DOT com |
| Subject: | cygwin_dll.h type mismatch in Cygwin 1.1.4 |
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 AT netheaven DOT com
Schenectady, NY USA Work: cccooper AT ltionline DOT com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |