Boost logo

Boost :

Subject: [boost] _WIN32_WINNT in thread\src\win32\thread.cpp and filesystem\src\operations.cpp
From: James Mansion (james_at_[hidden])
Date: 2009-07-18 04:11:35


Why does win32\thread.cpp unconditionally define _WIN32_WINNT
and WINVER?

That's a bit rude, especially when I go to lengths to set them properly in a
file I pass as BOOST_USER_CONFIG. :-(

This also applies in filesystem\src\operations.cpp: in that case it does
check
that _WIN32_WINNT isn't defined already, but there has been no inclusion
of config.h so BOOST_USER+CONFIG has not been processed yet.

I would have though that in both cases the correct response is to remove
these explicit settings and just:

#include <boost/config.h>

James

(Using 1.39.0 on Vista, BTW - and setting _WIN32_WINNT by detection
in my waf script)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk