--enable-runtime-pseudo-reloc support in cygwin, take 3.

Charles Wilson cwilson@ece.gatech.edu
Mon Dec 2 13:59:00 GMT 2002



Charles Wilson wrote:
Oops.  Left a debugging fragment in there.  Use the attached version 
instead of the previous one.

> /* poor man's wincap */
>   OSVERSIONINFO version;
>   memset (&version, 0, sizeof version);
>   version.dwOSVersionInfoSize = sizeof version;
>   GetVersionEx (&version);
>   get_console_window_avail = 0;
>   if (version.dwPlatformId == VER_PLATFORM_WIN32_NT) {
>     if (version.dwMajorVersion == 5) { // w2k or wxp
>       get_console_window_avail = 1;
>     }
>   }
>   get_console_window_avail = 0;
      ^^^^^^
       oops.

--Chuck

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: has_console.c
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20021202/d378ac69/attachment.c>


More information about the Cygwin-patches mailing list