summaryrefslogtreecommitdiffhomepage
path: root/Magic2/StdAfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'Magic2/StdAfx.h')
-rw-r--r--Magic2/StdAfx.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Magic2/StdAfx.h b/Magic2/StdAfx.h
index 67f99f5..d6a3e3a 100644
--- a/Magic2/StdAfx.h
+++ b/Magic2/StdAfx.h
@@ -13,7 +13,11 @@
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#define WIN32_LEAN_AND_MEAN
+#if _MSC_VER <= 1600
#define _WIN32_WINNT 0x0502 // XP is the lowest supported OS
+#else
+#define _WIN32_WINNT 0x0600 // VS2012 does not support XP, 0x0600 is Vista
+#endif
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions