| www.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 |
| From: | Chris Faylor <cgf AT cygnus DOT com> |
| Date: | Fri, 22 Sep 2000 12:58:27 -0400 |
| To: | Cygwin <cygwin AT sources DOT redhat DOT com> |
| Subject: | Re: cygwin_dll.h Inconsistency (a.k.a Problem #2 Building Cygwin PostgreSQL) |
| Message-ID: | <20000922125827.C5938@cygnus.com> |
| Reply-To: | cygwin AT sources DOT redhat DOT com |
| Mail-Followup-To: | Cygwin <cygwin AT sources DOT redhat DOT com> |
| References: | <20000922091623 DOT B1458 AT DP> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.3.6i |
| In-Reply-To: | <20000922091623.B1458@DP>; from Jason.Tishler@dothill.com on Fri, Sep 22, 2000 at 09:16:23AM -0400 |
On Fri, Sep 22, 2000 at 09:16:23AM -0400, Jason Tishler wrote:
>Organization: Dot Hill Systems Corp.
>
>While building PostgreSQL 7.0.2 on a stock Cygwin 1.1.4, I noticed the
>following inconsistency in cygwin/cygwin_dll.h:
>
>// declaration
>int WINAPI _cygwin_dll_entry (HANDLE h, DWORD reason, void *ptr);
>
>// definition
>int WINAPI _cygwin_dll_entry (HINSTANCE h, DWORD reason, void *ptr)
>{
> ...
>}
>
>Unless NO_STRICT is defined (which prevents STRICT from automatically
>being defined), HINSTANCE will not be a typedef for HANDLE:
>
>// from winnt.h
>#ifdef STRICT
>#define DECLARE_HANDLE(n) typedef struct n##__{int i;}*n
>#else
>#define DECLARE_HANDLE(n) typedef HANDLE n
>#endif
>
>// from windef.h
>DECLARE_HANDLE(HINSTANCE);
>
>Shouldn't the declaration and definition of _cygwin_dll_entry use either
>HANDLE or HINSTANCE consistently?
It's been fixed in CVS for some time.
cgf
--
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 |