diff options
author | William Ahern <william@solaris.(none)> | 2013-05-05 07:49:55 -0700 |
---|---|---|
committer | William Ahern <william@solaris.(none)> | 2013-05-05 07:49:55 -0700 |
commit | af13d57c7804562e8b007c90003109410c3a692a (patch) | |
tree | c3d91cba32e52f8fe13cb7fe2f2098c97a7d25d9 | |
parent | 709e706d58277727128f4b9894a8d574f59b03ec (diff) | |
download | luaossl-af13d57c7804562e8b007c90003109410c3a692a.tar.gz luaossl-af13d57c7804562e8b007c90003109410c3a692a.tar.bz2 luaossl-af13d57c7804562e8b007c90003109410c3a692a.zip |
-n
early version of LuaJIT don't defined LUA_FILEHANDLE
-rw-r--r-- | compat52.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -133,6 +133,10 @@ static lua_Unsigned luaL_optunsigned(lua_State *L, int arg, lua_Unsigned def) { | |||
133 | } /* luaL_optunsigned() */ | 133 | } /* luaL_optunsigned() */ |
134 | 134 | ||
135 | 135 | ||
136 | #ifndef LUA_FILEHANDLE /* Not defined by earlier LuaJIT releases */ | ||
137 | #define LUA_FILEHANDLE "FILE*" | ||
138 | #endif | ||
139 | |||
136 | /* | 140 | /* |
137 | * Lua 5.1 userdata is a simple FILE *, while LuaJIT is a struct with the | 141 | * Lua 5.1 userdata is a simple FILE *, while LuaJIT is a struct with the |
138 | * first member a FILE *, similar to Lua 5.2. | 142 | * first member a FILE *, similar to Lua 5.2. |