Merge remote-tracking branch 'origin/dev/lhecker/proxy-no-default-lib' into dev/migrie/f/non-terminal-content-elevation-warning
This commit is contained in:
commit
90b79624ca
|
@ -62,6 +62,7 @@
|
||||||
<!-- Must be Stdcall on all platforms to resolve _ObjectStublessClient3 -->
|
<!-- Must be Stdcall on all platforms to resolve _ObjectStublessClient3 -->
|
||||||
<PreprocessorDefinitions>REGISTER_PROXY_DLL;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>REGISTER_PROXY_DLL;WIN32;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
|
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||||
<SDLCheck>false</SDLCheck>
|
<SDLCheck>false</SDLCheck>
|
||||||
<ForcedIncludeFiles>nodefaultlib_shim.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
|
<ForcedIncludeFiles>nodefaultlib_shim.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
|
||||||
|
|
|
@ -1,18 +1,8 @@
|
||||||
// Copyright (c) Microsoft Corporation.
|
// Copyright (c) Microsoft Corporation.
|
||||||
// Licensed under the MIT license.
|
// Licensed under the MIT license.
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#include <guiddef.h>
|
#include <guiddef.h>
|
||||||
|
|
||||||
#if !defined(_M_IX86) && !defined(_M_X64)
|
#define memcmp(a, b, c) (!InlineIsEqualGUID(a, b))
|
||||||
|
|
||||||
// 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue