aboutsummaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMike Frysinger <vapier@chromium.org>2017-02-11 12:43:50 -0500
committerMike Frysinger <vapier@chromium.org>2017-02-11 22:36:18 +0000
commit2b7724245b7298df872983cdec941be877ea9b62 (patch)
tree858024beb9d527286244e3a1cf3791452abb33a7 /src/client
parentwindows: update gtest/gmock paths (diff)
downloadbreakpad-2b7724245b7298df872983cdec941be877ea9b62.tar.xz
windows: fix build on pre-Win10 systems
The use of DBG_PRINTEXCEPTION_WIDE_C was added for Win10 support, but that define doesn't exist in older versions which means we fail to build. Put it behind an ifdef check to work everywhere. Change-Id: Ibab8bddd5c19b4b50e356f59edeb3873c3104569 Reviewed-on: https://chromium-review.googlesource.com/441525 Reviewed-by: Mark Mentovai <mark@chromium.org>
Diffstat (limited to 'src/client')
-rw-r--r--src/client/windows/handler/exception_handler.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/windows/handler/exception_handler.cc b/src/client/windows/handler/exception_handler.cc
index fc22cd9f..c42718cb 100644
--- a/src/client/windows/handler/exception_handler.cc
+++ b/src/client/windows/handler/exception_handler.cc
@@ -47,6 +47,11 @@ typedef struct {
AppMemoryList::const_iterator end;
} MinidumpCallbackContext;
+// This define is new to Windows 10.
+#ifndef DBG_PRINTEXCEPTION_WIDE_C
+#define DBG_PRINTEXCEPTION_WIDE_C ((DWORD)0x4001000A)
+#endif
+
vector<ExceptionHandler*>* ExceptionHandler::handler_stack_ = NULL;
LONG ExceptionHandler::handler_stack_index_ = 0;
CRITICAL_SECTION ExceptionHandler::handler_stack_critical_section_;