Sfoglia il codice sorgente

fix: iconv没启用编译

Wendal Chen 2 anni fa
parent
commit
3ceb6d45eb
2 ha cambiato i file con 5 aggiunte e 2 eliminazioni
  1. 3 0
      app/port/luat_base_air101.c
  2. 2 2
      app/port/luat_conf_bsp.h

+ 3 - 0
app/port/luat_base_air101.c

@@ -231,6 +231,9 @@ static const luaL_Reg loadedlibs[] = {
 #endif
 #ifdef LUAT_USE_REPL
   {"repl", luaopen_repl},
+#endif
+#ifdef LUAT_USE_ICONV
+  {"iconv", luaopen_iconv},
 #endif
   // {"opus", luaopen_opus},
   {NULL, NULL}

+ 2 - 2
app/port/luat_conf_bsp.h

@@ -50,8 +50,8 @@
 // OTP
 #define LUAT_USE_OTP 1
 #define LUAT_USE_TOUCHKEY 1
-// i2s
-//#define LUAt_USE_I2S 1
+
+// #define LUAT_USE_ICONV 1
 
 // wlan库相关
 // #define LUAT_USE_WLAN