[Lemon-devel] I can't believe
Gabor Retvari
retvari at tmit.bme.hu
Fri Apr 18 22:26:37 CEST 2008
On Friday 18 April 2008, Alpár Jüttner wrote:
> You won't believe the reason: There seems to exist a
>
> #define max(a,b) (((a)>(b))?(a):(b))
>
> line somewhere in the windows.h header file.
Not you are the only one driven crazy by the medness windows.h actually is:
http://www.tilander.org/aurora/2008/01/include-windowsh.html
Actually, the badness of this header is now pretty much acknowledged all over
the developer world.
The solution seems to be to define
#define WIN32_LEAN_AND_MEAN
before including windows.h.
Best regards,
Gabor
More information about the Lemon-devel
mailing list