Hi Mathias,
Probably we should either
* define nominmax on win32 in any case or
* change the code not to use variables called min or max and include
<algorithm> which should provide std::min and std::max and makes msvc 8
indeed compile the code (does this also work for other msvc's??).
No need for <algorithm> either, we have osg::maximum and osg::minimum.
But that's not the root of the problem. windows.h defines so much junk
that it should only be included in very specific cases, not everywhere.
But Atomic, since it's a requirement for thread-safe ref counting and is
only a header, is included everywhere and includes windows.h.
Splitting Atomic into a header and an implementation file would fix
that. Only the .cpp would include windows.h. As I said, I'll check that out.
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org