
7 Sep
2007
7 Sep
'07
3:41 p.m.
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@mail.ru