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