commit 20d30bcd33ca932bc7a516ab751b195f03abd66f
parent 44b6f496b5eec86795fbf753115b87677087d5b6
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Thu, 16 Jun 2011 11:09:48 -0300
declarations should be present only when implementations are
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/lauxlib.h b/lauxlib.h
@@ -1,5 +1,5 @@
/*
-** $Id: lauxlib.h,v 1.115 2011/03/03 16:34:46 roberto Exp roberto $
+** $Id: lauxlib.h,v 1.116 2011/04/08 19:17:36 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -164,6 +164,7 @@ LUALIB_API char *(luaL_buffinitsize) (lua_State *L, luaL_Buffer *B, size_t sz);
/* compatibility with old module system */
+#if defined(LUA_COMPAT_MODULE)
LUALIB_API void (luaL_pushmodule) (lua_State *L, const char *modname,
int sizehint);
@@ -172,6 +173,8 @@ LUALIB_API void (luaL_openlib) (lua_State *L, const char *libname,
#define luaL_register(L,n,l) (luaL_openlib(L,(n),(l),0))
+#endif
+
#endif