Explorar el Código

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

Wendal Chen hace 7 meses
padre
commit
704891712e
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      lua/src/liolib.c

+ 3 - 2
lua/src/liolib.c

@@ -64,8 +64,9 @@ end
 #include "lauxlib.h"
 #include "lauxlib.h"
 #include "lualib.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
 ** Change this macro to accept other modes for 'fopen' besides