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
> 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.


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