Просмотр исходного кода

fix: io库,在pc模拟器上执行seek操作会死机

Wendal Chen 7 месяцев назад
Родитель
Сommit
704891712e
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      lua/src/liolib.c

+ 3 - 2
lua/src/liolib.c

@@ -64,8 +64,9 @@ end
 #include "lauxlib.h"
 #include "lualib.h"
 
-
-
+#define l_fseek luat_fs_fseek
+#define l_ftell luat_fs_ftell
+#define l_seeknum int32_t
 
 /*
 ** Change this macro to accept other modes for 'fopen' besides