From 144b5052ea949aadf6ef84a331188f73a56b1ff6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 13 Feb 2014 18:46:28 -0800 Subject: [PATCH] Fix for building XP-compatible apps with VS2012, from Jon Sonntag --- lib/diagnostics_win.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/diagnostics_win.cpp b/lib/diagnostics_win.cpp index 112ecae555..2bd02151ef 100644 --- a/lib/diagnostics_win.cpp +++ b/lib/diagnostics_win.cpp @@ -43,6 +43,13 @@ #include "util.h" #include "version.h" +#if _MSC_VER > 1600 + //required for compiling with v110_xp to create XP compatible executables + #ifndef FACILITY_VISUALCPP + #define FACILITY_VISUALCPP ((LONG)0x6d) //now defined in winerror.h + #endif +#endif + #include "diagnostics_win.h" // NtQuerySystemInformation