
Pavel Vozenilek wrote:
"Jason Hise" wrote:
OK, I will add this to the singleton to-do list. BTW, which macro should I check to see if the target operating system is windows?
#if defined(_WIN32) || defined(__WIN32__) || defined(WIN32) Really all of them.
That's why BOOST_WINDOWS was created. Just #include boost/config.h and it'll be available to you. boost/config.hpp: #include <boost/config/select_platform_config.hpp> #ifdef BOOST_PLATFORM_CONFIG # include BOOST_PLATFORM_CONFIG #endif boost/config/select_platform_config.hpp: #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) // win32: # define BOOST_PLATFORM_CONFIG "boost/config/platform/win32.hpp" boost/config/platform/win32.hpp: #define BOOST_WINDOWS 1 Rgds, Angus