diff --git a/components/net/lwip/port/lwipopts.h b/components/net/lwip/port/lwipopts.h index a297af7060..9cd86abc68 100644 --- a/components/net/lwip/port/lwipopts.h +++ b/components/net/lwip/port/lwipopts.h @@ -654,7 +654,7 @@ #endif #endif /* RT_USING_LWIP_VER_NUM >= 0x20000 */ -#if RT_LWIP_ENABLE_USER_HOOKS +#ifdef RT_LWIP_ENABLE_USER_HOOKS /**  * This hook provides flexibility for handling unknown Ethernet protocols.  *