aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gyp/common_conditions.gypi2
-rw-r--r--tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/gyp/common_conditions.gypi b/gyp/common_conditions.gypi
index 661e5d077f..b4b9890263 100644
--- a/gyp/common_conditions.gypi
+++ b/gyp/common_conditions.gypi
@@ -66,6 +66,8 @@
'_CRT_SECURE_NO_WARNINGS',
'GR_GL_FUNCTION_TYPE=__stdcall',
'_HAS_EXCEPTIONS=0',
+ 'WIN32_LEAN_AND_MEAN',
+ 'NOMINMAX',
],
'msvs_disabled_warnings': [
4275, # An exported class was derived from a class that was not exported
diff --git a/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp
index 4162b8f42d..1b482bc290 100644
--- a/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp
+++ b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp
@@ -12,7 +12,6 @@
#include <GL/GL.h>
#include "win/SkWGL.h"
-#define WIN32_LEAN_AND_MEAN
#include <windows.h>
namespace {