diff options
author | Sam Lantinga <slouken@libsdl.org> | 2019-09-11 15:08:37 -0700 |
---|---|---|
committer | Sam Lantinga <slouken@libsdl.org> | 2019-09-11 15:08:37 -0700 |
commit | e968ccc69c653fef5496d2f12f83cf533cca87e6 (patch) | |
tree | d40e5f7962d8e168b126313b936e0b5b11d7f0f5 /include/SDL_egl.h | |
parent | bc92f3460ea9f535c5300c091b6c89a445a6df8e (diff) | |
download | sdl-e968ccc69c653fef5496d2f12f83cf533cca87e6.tar.gz |
Don't have Windows headers define min/max, in case they're defined by application code
Diffstat (limited to 'include/SDL_egl.h')
-rw-r--r-- | include/SDL_egl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/SDL_egl.h b/include/SDL_egl.h index f50fa5c9b..f95a9067b 100644 --- a/include/SDL_egl.h +++ b/include/SDL_egl.h @@ -390,6 +390,9 @@ typedef enum { #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN 1 #endif +#ifndef NOMINMAX /* don't define min() and max(). */ +#define NOMINMAX +#endif #include <windows.h> #if __WINRT__ |