Hi Wim, I don't explicitly include windows.h, but it comes in through several boost headers including: filesystem, unordered, random ... Including Wt headers always first would imply I could no longer forward declare the affected Wt classes... The case with NO_ERROR is indeed very ugly. One solution might be to add a lower case e to all the enums like eNO_ERROR. But that would then be out of sync with WebGl ...
Rgds Richard On Fri, 2011-05-27 at 15:09 +0200, Wim Dumon wrote: > Hey Richard, > > Oh no, that crap again. I can't think of a proper punishment for MS > for doing this, since it should be a really nasty one. There's no good > fix for this other than not to include windows.h. > > For near and far, I have changed the variable names to nearPlane and > farPlane. For NO_ERROR... I don't know. Should Wt automatically undef > that kind of symbols? It seems very ugly to me to do so. > > Normally windows.h should not be included by Wt's header files. Do you > still have these problems if you include Wt's header files before all > others? > > After > > Regards, > Wim. > > 2011/5/27 Richard Ulrich <[email protected]>: > > Today I wanted to compile my code on Windows, and ran into some nasty > > macros: > > > > platformsdk/include/windef.h line 90ff: > > #define far > > #define near > > These cause problems in Wt::WMatrix4x4::frustum > > > > platformsdk/include/winerror.h line 92: > > #define NO_ERROR 0L > > This causes problems in Wt::WGLWidget::GLenum::NO_ERROR > > > > At the moment I do just this: > > #undef far > > #undef near > > #undef NO_ERROR > > #include <Wt/WMatrix4x4> > > #include <Wt/WGLWidget> > > > > but it might be better to handle these macros inside the Wt headers. > > > > Rgds > > Richard > > > > ------------------------------------------------------------------------------ > > vRanger cuts backup time in half-while increasing security. > > With the market-leading solution for virtual backup and recovery, > > you get blazing-fast, flexible, and affordable data protection. > > Download your free trial now. > > http://p.sf.net/sfu/quest-d2dcopy1 > > _______________________________________________ > > witty-interest mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/witty-interest > > > > >
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
