Bug 1849927 - Fix MinGW build errors. r=tjr

Differential Revision: https://phabricator.services.mozilla.com/D186837
This commit is contained in:
Masatoshi Kimura 2023-09-06 21:25:09 +00:00
parent 7a36a26eb0
commit dd444d46f2
4 changed files with 4 additions and 4 deletions

View file

@ -18,7 +18,7 @@
# include "nsPrintfCString.h"
#endif // defined(MOZILLA_INTERNAL_API)
#if NTDDI_VERSION < NTDDI_WINBLUE
#if NTDDI_VERSION < NTDDI_WINBLUE || defined(__MINGW32__)
// Declarations from Windows SDK specific to Windows 8.1

View file

@ -245,7 +245,7 @@ DeriveAppContainerSidFromAppContainerName(
#define PROCESS_CREATION_MITIGATION_POLICY_BLOCK_NON_MICROSOFT_BINARIES_RESERVED (0x00000003uLL << 44)
#endif
#if (_WIN32_WINNT < 0x0A00)
#if (_WIN32_WINNT < 0x0A00) || defined(__MINGW32__)
//
// Define Font Disable Policy. When enabled, this option will
// block loading Non System Fonts.

View file

@ -34,7 +34,7 @@ namespace {
#if defined(XP_WIN)
# if (NTDDI_VERSION < NTDDI_WINBLUE) || \
# if defined(__MINGW32__) || (NTDDI_VERSION < NTDDI_WINBLUE) || \
(NTDDI_VERSION == NTDDI_WINBLUE && !defined(WINBLUE_KBSPRING14))
// Definitions for heap optimization that require the Windows SDK to target the
// Windows 8.1 Update

View file

@ -930,7 +930,7 @@ nsresult CollectProcessInfo(ProcessInfo& info) {
return NS_OK;
}
#if defined(XP_WIN) && (_WIN32_WINNT < 0x0A00)
#if defined(XP_WIN) && (_WIN32_WINNT < 0x0A00) || defined(__MINGW32__)
WINBASEAPI
BOOL WINAPI IsUserCetAvailableInEnvironment(_In_ DWORD UserCetEnvironment);