Browse Source

change: lwip内存分配回滚到动态分配

Wendal Chen 2 years ago
parent
commit
25332d3959
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/network/lwip2.1.3/include/lwipopts.h

+ 2 - 2
src/network/lwip2.1.3/include/lwipopts.h

@@ -14,8 +14,8 @@
  * instead of the lwip internal allocator. Can save code size if you
  * already use it.
  */
-#define MEM_LIBC_MALLOC                 0
-#define MEMP_MEM_MALLOC                 0
+#define MEM_LIBC_MALLOC                 1
+#define MEMP_MEM_MALLOC                 1
 #define MEM_USE_POOLS                   0
 #define MEMP_USE_CUSTOM_POOLS           0
 #define MEMP_OVERFLOW_CHECK             2