Skip to content

Commit

Permalink
Bug 1852806 - Remove macros for older Windows SDK from mozglue/. r=gl…
Browse files Browse the repository at this point in the history
…andium

Depends on D188026

Differential Revision: https://phabricator.services.mozilla.com/D188027
  • Loading branch information
vyv03354 committed Sep 15, 2023
1 parent 12c73fe commit 01db6af
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
5 changes: 0 additions & 5 deletions mozglue/misc/WindowsDpiAwareness.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ typedef enum DPI_AWARENESS {
# define DPI_AWARENESS_CONTEXT_DECLARED
#endif // (DPI_AWARENESS_CONTEXT_DECLARED)

#if WINVER < 0x0605
WINUSERAPI DPI_AWARENESS_CONTEXT WINAPI GetThreadDpiAwarenessContext();
WINUSERAPI BOOL WINAPI AreDpiAwarenessContextsEqual(DPI_AWARENESS_CONTEXT,
DPI_AWARENESS_CONTEXT);
#endif /* WINVER < 0x0605 */
typedef DPI_AWARENESS_CONTEXT(WINAPI* SetThreadDpiAwarenessContextProc)(
DPI_AWARENESS_CONTEXT);
typedef BOOL(WINAPI* EnableNonClientDpiScalingProc)(HWND);
Expand Down
6 changes: 0 additions & 6 deletions mozglue/misc/WindowsProcessMitigations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@

static_assert(sizeof(PROCESS_MITIGATION_DYNAMIC_CODE_POLICY) == 4);

#if (_WIN32_WINNT < 0x0602)
BOOL WINAPI GetProcessMitigationPolicy(
HANDLE hProcess, PROCESS_MITIGATION_POLICY MitigationPolicy, PVOID lpBuffer,
SIZE_T dwLength);
#endif // (_WIN32_WINNT < 0x0602)

namespace mozilla {

static decltype(&::GetProcessMitigationPolicy)
Expand Down

0 comments on commit 01db6af

Please sign in to comment.