@@ -617,7 +617,7 @@ void vIPNetworkUpCalls( NetworkEndPoint_t * pxEndPoint )
617617 pxEndPoint -> bits .bEndPointUp = pdTRUE_UNSIGNED ;
618618
619619 #if ( ipconfigUSE_NETWORK_EVENT_HOOK == 1 )
620- #if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
620+ #if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
621621 {
622622 vApplicationIPNetworkEventHook ( eNetworkUp );
623623 }
@@ -774,7 +774,7 @@ BaseType_t FreeRTOS_NetworkDownFromISR( struct xNetworkInterface * pxNetworkInte
774774}
775775/*-----------------------------------------------------------*/
776776
777- #if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
777+ #if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
778778
779779/**
780780 * @brief Obtain a buffer big enough for a UDP payload of given size.
@@ -795,7 +795,7 @@ BaseType_t FreeRTOS_NetworkDownFromISR( struct xNetworkInterface * pxNetworkInte
795795 {
796796 return FreeRTOS_GetUDPPayloadBuffer_Multi ( uxRequestedSizeBytes , uxBlockTimeTicks , ipTYPE_IPv4 );
797797 }
798- #endif /* if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
798+ #endif /* if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
799799/*-----------------------------------------------------------*/
800800
801801/**
@@ -881,7 +881,7 @@ void * FreeRTOS_GetUDPPayloadBuffer_Multi( size_t uxRequestedSizeBytes,
881881 * As that bug has been repaired, there is not an urgent reason to warn.
882882 * It is better though to use the advised priority scheme. */
883883
884- #if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
884+ #if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
885885
886886/* Provide backward-compatibility with the earlier FreeRTOS+TCP which only had
887887 * single network interface. */
@@ -905,7 +905,7 @@ void * FreeRTOS_GetUDPPayloadBuffer_Multi( size_t uxRequestedSizeBytes,
905905 #endif /* ipconfigUSE_DHCP */
906906 return FreeRTOS_IPInit_Multi ();
907907 }
908- #endif /* if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
908+ #endif /* if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
909909/*-----------------------------------------------------------*/
910910
911911/**
@@ -1081,7 +1081,7 @@ void FreeRTOS_GetEndPointConfiguration( uint32_t * pulIPAddress,
10811081}
10821082/*-----------------------------------------------------------*/
10831083
1084- #if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
1084+ #if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
10851085
10861086/**
10871087 * @brief Get the current IPv4 address configuration of the first endpoint.
@@ -1106,7 +1106,7 @@ void FreeRTOS_GetEndPointConfiguration( uint32_t * pulIPAddress,
11061106 FreeRTOS_GetEndPointConfiguration ( pulIPAddress , pulNetMask ,
11071107 pulGatewayAddress , pulDNSServerAddress , pxEndPoint );
11081108 }
1109- #endif /* if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
1109+ #endif /* if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
11101110/*-----------------------------------------------------------*/
11111111
11121112/**
@@ -1152,7 +1152,7 @@ void FreeRTOS_SetEndPointConfiguration( const uint32_t * pulIPAddress,
11521152}
11531153/*-----------------------------------------------------------*/
11541154
1155- #if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
1155+ #if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 )
11561156
11571157/**
11581158 * @brief Set the current IPv4 network address configuration. Only non-NULL
@@ -1177,7 +1177,7 @@ void FreeRTOS_SetEndPointConfiguration( const uint32_t * pulIPAddress,
11771177 FreeRTOS_SetEndPointConfiguration ( pulIPAddress , pulNetMask ,
11781178 pulGatewayAddress , pulDNSServerAddress , pxEndPoint );
11791179 }
1180- #endif /* if defined( ipconfigIPv4_BACKWARD_COMPATIBLE ) && ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
1180+ #endif /* if ( ipconfigIPv4_BACKWARD_COMPATIBLE == 1 ) */
11811181/*-----------------------------------------------------------*/
11821182
11831183#if ( ipconfigUSE_TCP == 1 )
0 commit comments