Navigation Menu

Skip to content

Commit

Permalink
Don't have Windows headers define min/max, in case they're defined by…
Browse files Browse the repository at this point in the history
… application code
  • Loading branch information
slouken committed Sep 11, 2019
1 parent 79e388b commit 3efea5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/SDL_egl.h
Expand Up @@ -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__
Expand Down
3 changes: 3 additions & 0 deletions include/SDL_opengl_glext.h
Expand Up @@ -40,6 +40,9 @@ extern "C" {
#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>
#endif

Expand Down
3 changes: 3 additions & 0 deletions include/SDL_syswm.h
Expand Up @@ -49,6 +49,9 @@ struct SDL_SysWMinfo;
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#ifndef NOMINMAX /* don't define min() and max(). */
#define NOMINMAX
#endif
#include <windows.h>
#endif

Expand Down

0 comments on commit 3efea5e

Please sign in to comment.