Boost logo

Boost :

From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-09-07 11:41:05


Hello Joaquín,

Friday, September 7, 2007, 1:12:16 PM, you wrote:

> boost/detail/flyweight_mutex.hpp implements a mutex class based on a
> Win32 CRITICAL_SECTION or using Pthreads according to the
> following pp logic:

> The problem with this is that WIN32 and related macros are not predefined
> in some environments (Cygwin at least) but rather they are defined inside
> windows.h, thus making the logic above dependent on the inclusion context.

I guess, you're talking about MinGW cross-compiler, since Cygwin is a
UNIX-like environment and doesn't have windows.h. So you shouldn't
have included it in the first place.

-- 
Best regards,
 Andrey                            mailto:andysem_at_[hidden]

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