mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-15 22:52:31 +00:00
fix: define LUA_OK for Lua 5.1 and LuaJIT compatibility
LUA_OK was introduced in Lua 5.2. Define it as 0 for compatibility with Lua 5.1 and LuaJIT (which is based on Lua 5.1).
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
|
||||
#ifdef HAVE_LUA
|
||||
#include <lua.hpp>
|
||||
// LUA_OK was introduced in Lua 5.2; define for Lua 5.1 and LuaJIT2.0.
|
||||
#ifndef LUA_OK
|
||||
#define LUA_OK 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <torrent/object.h>
|
||||
|
||||
Reference in New Issue
Block a user