From e09741c609dcd5f5274d40182c5e2cc9a002d5ba Mon Sep 17 00:00:00 2001 From: Yuly Novikov Date: Tue, 29 Mar 2022 18:22:35 -0400 Subject: [PATCH] Fix build with Windows 10 20348 SDK Bug: chromium:1292528 Change-Id: Iaee784fe3992725086636dddb5f73d7e1373e7d7 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3558794 Reviewed-by: Ivan Penkov --- src/common/windows/pe_util.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/windows/pe_util.cc b/src/common/windows/pe_util.cc index dea9b911..f8934d27 100644 --- a/src/common/windows/pe_util.cc +++ b/src/common/windows/pe_util.cc @@ -43,15 +43,19 @@ namespace { /* - * Not defined in WinNT.h for some reason. Definitions taken from: - * http://uninformed.org/index.cgi?v=4&a=1&p=13 + * Not defined in WinNT.h prior to SDK 10.0.20348.0 for some reason. + * Definitions taken from: http://uninformed.org/index.cgi?v=4&a=1&p=13 * */ typedef unsigned char UBYTE; -#if !defined(_WIN64) +#if !defined(UNW_FLAG_EHANDLER) #define UNW_FLAG_EHANDLER 0x01 +#endif +#if !defined(UNW_FLAG_UHANDLER) #define UNW_FLAG_UHANDLER 0x02 +#endif +#if !defined(UNW_FLAG_CHAININFO) #define UNW_FLAG_CHAININFO 0x04 #endif