Skip to content

Commit ec8aef6

Browse files
committed
Include externs inside preprocessor macros
1 parent b53d48d commit ec8aef6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/include/FreeRTOS_DNS.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ extern const MACAddress_t xLLMNR_MacAddress;
4747
/* The LLMNR IPv6 MAC address is 33:33:00:01:00:03 */
4848
extern const MACAddress_t xLLMNR_MacAddressIPv6;
4949

50-
#if ( ( ipconfigUSE_LLMNR != 1 ) && ( ipconfigUSE_IPv6 != 0 ) )
50+
#if ( ( ipconfigUSE_LLMNR != 0 ) && ( ipconfigUSE_IPv6 != 0 ) )
5151
/* The LLMNR IPv6 address is ff02::1:3 */
5252
extern const IPv6_Address_t ipLLMNR_IP_ADDR_IPv6;
53-
#endif /* ( ( ipconfigUSE_LLMNR != 1 ) && ( ipconfigUSE_IPv6 != 0 ) ) */
53+
#endif /* ( ( ipconfigUSE_LLMNR != 0 ) && ( ipconfigUSE_IPv6 != 0 ) ) */
5454

5555
/* The MDNS MAC address is 01:00:5e:00:00:fc */
5656
extern const MACAddress_t xMDNS_MacAddress;
@@ -63,8 +63,10 @@ extern const MACAddress_t xMDNS_MacAddressIPv6;
6363
/* Guarantee backward compatibility. */
6464
#define xMDNS_MACAddressIPv6 xMDNS_MacAddressIPv6
6565

66+
#if ( ( ipconfigUSE_MDNS != 0 ) && ( ipconfigUSE_IPv6 != 0 ) )
6667
/* The MDNS IPv6 address is ff02::1:3 */
6768
extern const IPv6_Address_t ipMDNS_IP_ADDR_IPv6;
69+
#endif /* ( ( ipconfigUSE_MDNS != 0 ) && ( ipconfigUSE_IPv6 != 0 ) ) */
6870

6971
/** @brief While doing integration tests, it is necessary to influence the choice
7072
* between DNS/IPv4 and DNS/IPv4. Depending on this, a DNS server will be

0 commit comments

Comments
 (0)