Boost logo

Boost :

Subject: Re: [boost] [winapi] Default target Windows version
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2013-10-23 17:06:21

On Thursday 24 October 2013 00:45:03 Sergey Cheban wrote:
> 24.10.2013 0:12, Edward Diener пишет:
> > All that the VC++12 xp build does is allow your program to run under
> > Windows XP. Without that configuration your program will fail if running
> > under Windows XP. It may also set the _WIN32_WINNT macro automatically.
> > You should try it out to see if it does.
> Windows SDK 7.1A:
> #if !defined(_WIN32_WINNT) && !defined(_CHICAGO_)
> #define _WIN32_WINNT 0x0601
> #endif

Maybe it would be a good idea to just include sdkddkver.h and then analyze
_WIN32_WINNT value so that Boost automatically uses the right WinAPI. If the
user does not define this macro then we use whatever the default is in the
current SDK.

Boost list run by bdawes at, gregod at, cpdaniel at, john at