diff --git a/bsp/simulator/applications/application.c b/bsp/simulator/applications/application.c index cf84a1e116a4fc00cb8d78617467e19ae8d2e47d..a6c973983012f96d61e91fe8dc0219ef192767b4 100644 --- a/bsp/simulator/applications/application.c +++ b/bsp/simulator/applications/application.c @@ -16,7 +16,11 @@ #include #include +/* fix the compile errors for redefiniton of lwip_htonl in win socket */ +#ifdef _WIN32 +#undef RT_USING_LWIP #include +#endif void rt_init_thread_entry(void* parameter) { diff --git a/bsp/simulator/rtconfig.h b/bsp/simulator/rtconfig.h index 555da3cf187c081a4a5534b93ae83363ecbfa653..f12a644528af63da8df4dce056a426ee37a16bcb 100644 --- a/bsp/simulator/rtconfig.h +++ b/bsp/simulator/rtconfig.h @@ -109,7 +109,7 @@ #define DFS_FD_MAX 4 /* SECTION: lwip, a lighwight TCP/IP protocol stack */ -#define RT_USING_LWIP +//#define RT_USING_LWIP /* LwIP uses RT-Thread Memory Management */ #define RT_LWIP_USING_RT_MEM /* Enable ICMP protocol*/