assemble definition in same ifdef

This commit is contained in:
ami-GS 2024-11-19 16:04:53 -08:00
Родитель d67a79bcc0
Коммит ca42af4397
1 изменённых файлов: 6 добавлений и 10 удалений

Просмотреть файл

@ -165,15 +165,6 @@ typedef enum CXPLAT_SOCKET_TYPE {
#define DatapathType(SendData) ((CXPLAT_SEND_DATA_COMMON*)(SendData))->DatapathType
#ifdef _WIN32
#define IS_LOOPBACK(Address) ((Address.si_family == QUIC_ADDRESS_FAMILY_INET && \
IN4_IS_ADDR_LOOPBACK(&Address.Ipv4.sin_addr)) || \
(Address.si_family == QUIC_ADDRESS_FAMILY_INET6 && \
IN6_IS_ADDR_LOOPBACK(&Address.Ipv6.sin6_addr)))
#endif
#ifdef _KERNEL_MODE
#define CXPLAT_BASE_REG_PATH L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\MsQuic\\Parameters\\"
@ -774,7 +765,12 @@ CxPlatConvertFromMappedV6(
}
#pragma warning(pop)
#endif
#define IS_LOOPBACK(Address) ((Address.si_family == QUIC_ADDRESS_FAMILY_INET && \
IN4_IS_ADDR_LOOPBACK(&Address.Ipv4.sin_addr)) || \
(Address.si_family == QUIC_ADDRESS_FAMILY_INET6 && \
IN6_IS_ADDR_LOOPBACK(&Address.Ipv6.sin6_addr)))
#endif // _WIN32
//
// Crypt Initialization