ソースを参照

fix: 未启用network的情况下编译失败

Wendal Chen 3 年 前
コミット
d91465ac93
1 ファイル変更4 行追加0 行削除
  1. 4 0
      app/network/luat_network_lwip_tcpip_cb.c

+ 4 - 0
app/network/luat_network_lwip_tcpip_cb.c

@@ -8,6 +8,8 @@
 #include "lwip/tcpip.h"
 #include "lwip/tcpip.h"
 #include "lwip/udp.h"
 #include "lwip/udp.h"
 
 
+#ifdef LUAT_USE_NETWORK
+
 #define LUAT_LOG_TAG "net"
 #define LUAT_LOG_TAG "net"
 #include "luat_log.h"
 #include "luat_log.h"
 
 
@@ -2040,3 +2042,5 @@ void net_lwip_set_netif(struct netif *netif)
 	}
 	}
 	return;
 	return;
 }
 }
+
+#endif