
No. The condvar_vista won't be included into the binary because it won't be used (providing _WIN32_WINNT==0x0501 for the user's code). The whole condvar_vista.obj will be linked out. So, the vista-specific functions won't be referenced and the code will be WinXP-compatible. If condvar_vista is compiled into a dll, it won't be linked out. If you don't compile it because _WIN32_WINNT == 0x0501 then that's the current approach already. And it requires _WIN32_WINNT to be defined when Boost itself is built. Sorry, I've completely forgotten about the dll versions of boost libraries. Of course, to build them, the WINAPI version must be specified at compile time (or,
On 24.10.2013 13:00, Andrey Semashev wrote: the library could use GetProcAddress etc., but this approach has it's own drawbacks). -- Sergey Cheban