diff options
| author | Alexey Melnichuk <mimir@newmail.ru> | 2014-11-26 13:00:44 +0400 |
|---|---|---|
| committer | Alexey Melnichuk <mimir@newmail.ru> | 2014-11-26 13:00:44 +0400 |
| commit | febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd (patch) | |
| tree | 64573d325b7b5a0e3af1b4d6ca7e9cbec75fd595 /src | |
| parent | dbf215ef683e545de593f5b434764b97dea3e2ac (diff) | |
| download | lua-llthreads2-febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd.tar.gz lua-llthreads2-febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd.tar.bz2 lua-llthreads2-febc8d1e0bcbe023cc8a38c87dda4e8a84ec9fdd.zip | |
Fix. Build with Lua 5.3.beta
Diffstat (limited to 'src')
| -rw-r--r-- | src/l52util.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/l52util.h b/src/l52util.h index 38a87db..92d9fb8 100644 --- a/src/l52util.h +++ b/src/l52util.h | |||
| @@ -4,6 +4,18 @@ | |||
| 4 | #include "lua.h" | 4 | #include "lua.h" |
| 5 | #include "lauxlib.h" | 5 | #include "lauxlib.h" |
| 6 | 6 | ||
| 7 | #if LUA_VERSION_NUM >= 503 /* Lua 5.3 */ | ||
| 8 | |||
| 9 | #ifndef luaL_optint | ||
| 10 | # define luaL_optint luaL_optinteger | ||
| 11 | #endif | ||
| 12 | |||
| 13 | #ifndef luaL_checkint | ||
| 14 | # define luaL_checkint luaL_checkinteger | ||
| 15 | #endif | ||
| 16 | |||
| 17 | #endif | ||
| 18 | |||
| 7 | #if LUA_VERSION_NUM >= 502 // lua 5.2 | 19 | #if LUA_VERSION_NUM >= 502 // lua 5.2 |
| 8 | 20 | ||
| 9 | // lua_rawgetp | 21 | // lua_rawgetp |
