This is the mail archive of the cygwin-patches@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: Add FILE_FLAG_FIRST_PIPE_INSTANCE to <w32api/winbase.h>


"Earnie Boyd" <earnie_boyd@yahoo.com> wrote:
> MSDN says that this is Win2000 SP2 and XP only.  So you need to
guard it
> with the appropriate WINVER constant.

Earnie, I'm a bit confused about these WINVER guards.  The use of a
new Win2000 SP2 and XP only flag like this is not a compile-time but a
run-time issue, i.e. I should be able to compile a program using such
a flag on any platform and the application should act check at
run-time whether the flag is supported on whatever it is running on.
So, to use such a flag in a program, it seems I would need to add a
#define WINVER into the compilation to get access to the flag and then
add code (as I have) to check the windows version at run-time when
using the flag.

Given this, it doesn't seem much point having such WINVER guards. Am I
missing something here?

// Conrad




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