Boost logo

Boost :

From: Angus Leeming (angus.leeming_at_[hidden])
Date: 2005-05-07 15:52:17


Pavel Vozenilek wrote:
> "Jason Hise" wrote:
>> OK, I will add this to the singleton to-do list. BTW, which macro
>> should I check to see if the target operating system is windows?

> #if defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
> Really all of them.

That's why BOOST_WINDOWS was created. Just #include boost/config.h and
it'll be available to you.

boost/config.hpp:
#include <boost/config/select_platform_config.hpp>
#ifdef BOOST_PLATFORM_CONFIG
# include BOOST_PLATFORM_CONFIG
#endif

boost/config/select_platform_config.hpp:
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
// win32:
# define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp"

boost/config/platform/win32.hpp:
#define BOOST_WINDOWS 1

Rgds,
Angus


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