I’ve been trying to purge windows.h includes from a project that uses Boost, but I see compile errors when I don’t define BOOST_USE_WINDOWS_H (the included prototypes don’t match prototypes defined elsewhere). This is building Boost 1.42.0
in VS2010.
Is this a known issue? Is it known to be fixed in a more current version? Am I doing something wrong?
I worked around the problem by creating an alternate set of #defines for the atomic ops, and including <intrin.h> instead (controlled via a new BOOST_USE_INTRIN_H macro). I can supply a patch if this sounds like a reasonable thing to do.
-Joe