From a3d83e7bf634aa58e8218706fb1fee8ccb370e5a Mon Sep 17 00:00:00 2001 From: Tomas Guisasola Date: Mon, 24 Jul 2006 01:36:51 +0000 Subject: Updating to run on both Lua 5.0 and 5.1 --- lualdap/src/lualdap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lualdap/src') diff --git a/lualdap/src/lualdap.c b/lualdap/src/lualdap.c index 703fb1c..d4ee773 100755 --- a/lualdap/src/lualdap.c +++ b/lualdap/src/lualdap.c @@ -1,7 +1,7 @@ /* ** LuaLDAP ** See Copyright Notice in license.html -** $Id: lualdap.c,v 1.44 2006-04-04 20:11:51 carregal Exp $ +** $Id: lualdap.c,v 1.45 2006-07-24 01:36:51 tomas Exp $ */ #include @@ -16,8 +16,9 @@ #include "lua.h" #include "lauxlib.h" +#if ! defined (LUA_VERSION_NUM) || LUA_VERSION_NUM < 501 #include "compat-5.1.h" - +#endif #define LUALDAP_PREFIX "LuaLDAP: " #define LUALDAP_TABLENAME "lualdap" @@ -958,7 +959,7 @@ static void set_info (lua_State *L) { lua_pushliteral (L, "LuaLDAP is a simple interface from Lua to an LDAP client"); lua_settable (L, -3); lua_pushliteral (L, "_VERSION"); - lua_pushliteral (L, "LuaLDAP 1.0.1"); + lua_pushliteral (L, "LuaLDAP 1.0.2"); lua_settable (L, -3); } -- cgit v1.2.3-59-g8ed1b