shithub: choc

Download patch

ref: 0bcc7170871b2966ace33603eb34f9268a8eb53c
parent: 7f27e795c6f2478bc184295a9c24fa772306d198
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon May 8 05:16:02 EDT 2017

Win32: do not redefine WIN32_LEAN_AND_MEAN

It may already be defined in SDL2/SDL_opengl.h.

--- a/src/i_video.c
+++ b/src/i_video.c
@@ -21,7 +21,9 @@
 #include "SDL_opengl.h"
 
 #ifdef _WIN32
+#ifndef WIN32_LEAN_AND_MEAN
 #define WIN32_LEAN_AND_MEAN
+#endif
 #include <windows.h>
 #endif