delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/06/30/22:39:57

From: rcrampton AT armature DOT com (Robin Crampton)
Subject: RE: WINVER
30 Jun 1998 22:39:57 -0700 :
Message-ID: <TFSHNDAN.cygnus.gnu-win32@armature.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com, cgf AT cygnus DOT com

>Rather than expect that we'll smack our heads and say, "Oh!  Of course!
>WINVER!  I'll add it right away!"  Why not take some time and explain
>what WINVER is and provide a patch to add it to the correct place?

Sorry.  I just assumed you'd have a genuine (!) windows.h knocking about.
Though I think you're being a bit harsh, I did say:

>I've just noticed that WINVER is not defined in the GNU version of
>windows.h.

So all you had to do was look in Microsoft windows.h and BAM! there it   
is.


At the very top of windows.h (right after the multiple-inclusion guard),   
this idiom appears:

 #ifndef WINVER
 #define WINVER 0x0400
 #endif

In mmsystem.h, lots of lovely new functionality is switched on thus:

 #if(WINVER >= 0x0400)

And this new stuff is what I couldn't get at (initially).

I've never written a patch before, but I'll give it a go...
Any pointers?  

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019