cygwin_dll.h Inconsistency (a.k.a Problem #2 Building Cygwin PostgreSQL)

Chris Faylor cgf@cygnus.com
Fri Sep 22 09:59:00 GMT 2000


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@sourceware.cygnus.com



More information about the Cygwin mailing list