Prevent include of luajit_rolling.h.

Thanks to Peter Cawley. #1145
This commit is contained in:
Mike Pall 2024-01-31 14:29:23 +01:00
parent e6c0ade97c
commit 14987af80a
2 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ local function file_write_mod(file, data)
assert(fp:close())
end
local text = file_read(FILE_ROLLING_H)
local text = file_read(FILE_ROLLING_H):gsub("#error.-\n", "")
local relver = file_read(FILE_RELVER_TXT):match("(%d+)")
if relver then

View File

@ -67,4 +67,5 @@ LUA_API int luaJIT_setmode(lua_State *L, int idx, int mode);
/* Enforce (dynamic) linker error for version mismatches. Call from main. */
LUA_API void LUAJIT_VERSION_SYM(void);
#error "DO NOT USE luajit_rolling.h -- only include build-generated luajit.h"
#endif