
4 Apr
2005
4 Apr
'05
4:14 p.m.
Another (real) issue: defining it in the jamfiles makes the boost libs compile. However, you cannot avoid that a user writes something like this in his own code:
#include <windows.h> #include <boost/test/...>
This fails for the same reasons!
I guess I could use hack like this: #define BOOST_MS_STRUCTURED_EXCEPTION_HANDLING #if !defined(_WIN32_WINNT) #if defined _WINBASE_ #error "either define _WIN32_WINNT or include boost headers in front please" #endif #define _WIN32_WINNT 0x0400 #endif #include <wtypes.h> #include <winbase.h> Gennadiy