diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkPostConfig.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core/SkPostConfig.h b/include/core/SkPostConfig.h index 39d4eb73ab..022757554c 100644 --- a/include/core/SkPostConfig.h +++ b/include/core/SkPostConfig.h @@ -140,13 +140,23 @@ #define WIN32_LEAN_AND_MEAN #define WIN32_IS_MEAN_WAS_LOCALLY_DEFINED #endif + #ifndef NOMINMAX + #define NOMINMAX + #define NOMINMAX_WAS_LOCALLY_DEFINED + #endif #include <windows.h> #ifdef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED + #undef WIN32_IS_MEAN_WAS_LOCALLY_DEFINED #undef WIN32_LEAN_AND_MEAN #endif + #ifdef NOMINMAX_WAS_LOCALLY_DEFINED + #undef NOMINMAX_WAS_LOCALLY_DEFINED + #undef NOMINMAX + #endif + #ifndef SK_DEBUGBREAK #define SK_DEBUGBREAK(cond) do { if (!(cond)) { SkNO_RETURN_HINT(); __debugbreak(); }} while (false) #endif |