<windef.h> and <limits> conflict

There is a conflict between max and min macros defined in
<windef.h> and max and min numeric_limits’ methods.
So there is a problem when you #include "SDL_opengl.h"
and then you #include .
So here is my modification of SDL_opengl.h (line 30)


#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#define NOMINMAX /* Flag that disables max and min
Windows’ macros to prevent conflict with numeric_limits’
methods */
#include <windows.h>
#endif

Do you think it’s a good solution and should it be
included in SDL sources ?–
Matthieu DUFOURNEAUD
16, avenue du G?n?ral de Gaulle
94300 Vincennes
T?l. (domicile): 01 43 74 21 61
T?l. (portable): 06 80 63 81 95
Email: @Matthieu_DUFOURNEAUD

L’e-mail gratuit pas comme les autres.
NOMADE.FR, pourquoi chercher ailleurs ?

Do you think it’s a good solution and should it be
included in SDL sources ?

Sounds good to me, and I’ve added it to CVS.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment