Explorar o código

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

Wendal Chen hai 7 meses
pai
achega
704891712e
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  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