-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OpenConsoleProxy for Debug builds (#11632)
- Loading branch information
Showing
2 changed files
with
4 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
|
||
#include <guiddef.h> | ||
|
||
#if !defined(_M_IX86) && !defined(_M_X64) | ||
#pragma once | ||
|
||
// ARM64 doesn't define a (__builtin_)memcmp function without CRT, | ||
// but we need one to compile IID_GENERIC_CHECK_IID. | ||
// Luckily we only ever use memcmp for IIDs. | ||
#pragma function(memcmp) | ||
inline int memcmp(const IID* a, const IID* b, size_t count) | ||
{ | ||
(void)(count); | ||
return 1 - InlineIsEqualGUID(a, b); | ||
} | ||
#include <guiddef.h> | ||
|
||
#endif | ||
#define memcmp(a, b, c) (!InlineIsEqualGUID(a, b)) |