# HG changeset patch # User Tom Ritter # Date 1516825559 21600 # Wed Jan 24 14:25:59 2018 -0600 # Node ID 9ce534c9f572dfb5abd3e409d9cfec069ccee0cd # Parent 6413cb580dccd986c61e6dbdc72fc370765b8f10 Bug 1431797 Correct the capitalization of headers inside the chromium code so MinGW can compile diff --git a/security/sandbox/chromium/base/rand_util_win.cc b/security/sandbox/chromium/base/rand_util_win.cc --- a/security/sandbox/chromium/base/rand_util_win.cc +++ b/security/sandbox/chromium/base/rand_util_win.cc @@ -7,17 +7,17 @@ #include #include #include // #define needed to link in RtlGenRandom(), a.k.a. SystemFunction036. See the // "Community Additions" comment on MSDN here: // http://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx #define SystemFunction036 NTAPI SystemFunction036 -#include +#include #undef SystemFunction036 #include #include #include "base/logging.h" namespace base { diff --git a/security/sandbox/chromium/base/win/pe_image.h b/security/sandbox/chromium/base/win/pe_image.h --- a/security/sandbox/chromium/base/win/pe_image.h +++ b/security/sandbox/chromium/base/win/pe_image.h @@ -14,17 +14,17 @@ #include #include #if defined(_WIN32_WINNT_WIN8) // The Windows 8 SDK defines FACILITY_VISUALCPP in winerror.h. #undef FACILITY_VISUALCPP #endif -#include +#include namespace base { namespace win { // This class is a wrapper for the Portable Executable File Format (PE). // Its main purpose is to provide an easy way to work with imports and exports // from a file, mapped in memory as image. class PEImage { diff --git a/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc b/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc --- a/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc +++ b/security/sandbox/chromium/sandbox/win/src/sandbox_rand.cc @@ -5,17 +5,17 @@ #include "sandbox/win/src/sandbox_rand.h" #include // #define needed to link in RtlGenRandom(), a.k.a. SystemFunction036. See the // "Community Additions" comment on MSDN here: // http://msdn.microsoft.com/en-us/library/windows/desktop/aa387694.aspx #define SystemFunction036 NTAPI SystemFunction036 -#include +#include #undef SystemFunction036 namespace sandbox { bool GetRandom(unsigned int* random_value) { return RtlGenRandom(random_value, sizeof(unsigned int)) != false; }