diff --git a/sdk/core/azure-core/inc/azure/core/internal/hkeyholder.hpp b/sdk/core/azure-core/inc/azure/core/internal/hkeyholder.hpp index d081370bf..0825ced25 100644 --- a/sdk/core/azure-core/inc/azure/core/internal/hkeyholder.hpp +++ b/sdk/core/azure-core/inc/azure/core/internal/hkeyholder.hpp @@ -8,6 +8,8 @@ */ #pragma once +#include "azure/core/platform.hpp" + #if defined(AZ_PLATFORM_WINDOWS) #if !defined(WIN32_LEAN_AND_MEAN) #define WIN32_LEAN_AND_MEAN @@ -18,6 +20,9 @@ #include +#if !defined(WINAPI_PARTITION_DESKTOP) \ + || WINAPI_PARTITION_DESKTOP // See azure/core/platform.hpp for explanation. + namespace Azure { namespace Core { namespace Internal { /** @@ -56,3 +61,5 @@ namespace Azure { namespace Core { namespace Internal { }}} // namespace Azure::Core::Internal #endif + +#endif