Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2003-09-15 17:55:10


"Ehsan Akhgari" <ehsan_at_[hidden]> wrote in message
news:000201c37bd0$85a171b0$744ad93e_at_ehsanakh...
> Environment: VC++ 7.1, Boost 1.30.2
>
> Looking at <boost/pool/detail/mutex.hpp>, it seems that the header
> requires the __WIN32__ symbol to be defined on Win32. The usual symbol
> in VC++ which is used in the Win32 Platform SDK headers as well is
> _WIN32, however. I worked around the problem by adding:
>
> // workaround for boost/pool/pool_alloc.hpp requiring __WIN32__ on Win32
> #ifdef _WIN32
> # define __WIN32__
> #endif
>
> before the aforementioned header inclusion. Just wanted to see if this
> is the intended behavior, and if so, the rationale behind it.
>
Boost.Config uses:

...
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
...

to cover all compilers: VC/BCB/GCC/...

Unfortunately, there's no single BOOST_WIN32 like macro available.

/Pavel


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