diff options
Diffstat (limited to 'src/ffi/glue')
-rw-r--r-- | src/ffi/glue/glue.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/ffi/glue/glue.c b/src/ffi/glue/glue.c index 8c2ade3..ccd13af 100644 --- a/src/ffi/glue/glue.c +++ b/src/ffi/glue/glue.c @@ -263,15 +263,21 @@ int main(int argc, const char **argv) { RS_STR("LUA_IOLIBNAME", LUA_IOLIBNAME), RS_STR("LUA_OSLIBNAME", LUA_OSLIBNAME), RS_STR("LUA_STRLIBNAME", LUA_STRLIBNAME), -#if LUA_VERSION_NUM == 503 +#ifdef LUA_UTF8LIBNAME RS_STR("LUA_UTF8LIBNAME", LUA_UTF8LIBNAME), #endif -#if LUA_VERSION_NUM >= 502 +#ifdef LUA_BITLIBNAME RS_STR("LUA_BITLIBNAME", LUA_BITLIBNAME), #endif RS_STR("LUA_MATHLIBNAME", LUA_MATHLIBNAME), RS_STR("LUA_DBLIBNAME", LUA_DBLIBNAME), RS_STR("LUA_LOADLIBNAME", LUA_LOADLIBNAME), +#ifdef LUA_JITLIBNAME + RS_STR("LUA_JITLIBNAME", LUA_JITLIBNAME), +#endif +#ifdef LUA_FFILIBNAME + RS_STR("LUA_FFILIBNAME", LUA_FFILIBNAME), +#endif }; if (!write_items(f, glue_entries)) { |