Don't have Windows headers define min/max, in case they're defined by application code default
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Sep 2019 15:08:37 -0700
changeset 130742ede888544ac
parent 13071 0c66be754e29
Don't have Windows headers define min/max, in case they're defined by application code
include/SDL_egl.h
include/SDL_opengl_glext.h
include/SDL_syswm.h
     1.1 --- a/include/SDL_egl.h	Tue Sep 10 17:12:34 2019 +0200
     1.2 +++ b/include/SDL_egl.h	Wed Sep 11 15:08:37 2019 -0700
     1.3 @@ -390,6 +390,9 @@
     1.4  #ifndef WIN32_LEAN_AND_MEAN
     1.5  #define WIN32_LEAN_AND_MEAN 1
     1.6  #endif
     1.7 +#ifndef NOMINMAX   /* don't define min() and max(). */
     1.8 +#define NOMINMAX
     1.9 +#endif
    1.10  #include <windows.h>
    1.11  
    1.12  #if __WINRT__
     2.1 --- a/include/SDL_opengl_glext.h	Tue Sep 10 17:12:34 2019 +0200
     2.2 +++ b/include/SDL_opengl_glext.h	Wed Sep 11 15:08:37 2019 -0700
     2.3 @@ -40,6 +40,9 @@
     2.4  #ifndef WIN32_LEAN_AND_MEAN
     2.5  #define WIN32_LEAN_AND_MEAN 1
     2.6  #endif
     2.7 +#ifndef NOMINMAX   /* don't define min() and max(). */
     2.8 +#define NOMINMAX
     2.9 +#endif
    2.10  #include <windows.h>
    2.11  #endif
    2.12  
     3.1 --- a/include/SDL_syswm.h	Tue Sep 10 17:12:34 2019 +0200
     3.2 +++ b/include/SDL_syswm.h	Wed Sep 11 15:08:37 2019 -0700
     3.3 @@ -49,6 +49,9 @@
     3.4  #ifndef WIN32_LEAN_AND_MEAN
     3.5  #define WIN32_LEAN_AND_MEAN
     3.6  #endif
     3.7 +#ifndef NOMINMAX   /* don't define min() and max(). */
     3.8 +#define NOMINMAX
     3.9 +#endif
    3.10  #include <windows.h>
    3.11  #endif
    3.12