This is the mail archive of the cygwin-developers@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]
Other format: [Raw text]

Re: GetConsoleWindow


On Tue, Sep 03, 2002 at 08:01:53PM -0400, Earnie Boyd wrote:
> Nicholas Wourms wrote:
> 
> > Earnie Boyd wrote:
> >
> > >Fix has been committed.
> > >
> > >Developers, please be aware to add the appropriate _WIN32_WINNT guards as
> > >described in the MSDN.microsoft.com documentation when adding new
> > >imports.
> > >
> > Earnie,
> >
> > You've broken the build on Win32 platforms (dunno about others), as
> > GetConsoleWindow is undeclared at 198 in cygwin/tty.cc.
> 
> Then Cygwin source is broken as GetConsoleWindow is specific to Win32 >=
> 0x0500.
> Since Cygwin supports Win32 back to Win95 you can't use that function
> globally.
> You might configure tests that would use it based on OS environment.
> 
> Earnie.

Earnie,

ever heard of autoload.cc?

The problem is not in Cygwin but in w32api/include:

Excerpt from windef.h:

  #ifndef WINVER
  #define WINVER 0x0400
  #endif
  #ifndef _WIN32_WINNT
  #define _WIN32_WINNT WINVER
  #endif

That variable has to be set to the latest version of Windows available,
to 0x0510 or 0x0501, that is.
You can't rely on each application to set it by hand.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.


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