From ac6fb78a6b69a9ac986986e60505623a29cb046b Mon Sep 17 00:00:00 2001 From: DDoSolitary Date: Sun, 17 May 2020 17:38:09 +0800 Subject: [PATCH] Define NOMINMAX for Windows.h. --- LxRunOffline/stdafx.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/LxRunOffline/stdafx.h b/LxRunOffline/stdafx.h index 0b060f0..c5a3480 100644 --- a/LxRunOffline/stdafx.h +++ b/LxRunOffline/stdafx.h @@ -1,15 +1,22 @@ #pragma once #define _CRT_SECURE_NO_WARNINGS - #include #include #include #include +#undef _CRT_SECURE_NO_WARNINGS #define WIN32_NO_STATUS +#ifdef _MSC_VER +#define NOMINMAX +#endif #include +#ifdef _MSC_VER +#undef MOMINMAX +#endif #undef WIN32_NO_STATUS + #include #include #include @@ -18,8 +25,6 @@ #include #include -#undef _CRT_SECURE_NO_WARNINGS - #include #include #include