Roberto Ierusalimschy 20 年之前
父节点
当前提交
5fa6604f00
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lauxlib.c

+ 2 - 2
lauxlib.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lauxlib.c,v 1.150 2005/08/26 17:32:05 roberto Exp roberto $
+** $Id: lauxlib.c,v 1.151 2005/08/26 17:36:32 roberto Exp roberto $
 ** Auxiliary functions for building Lua libraries
 ** See Copyright Notice in lua.h
 */
@@ -262,7 +262,7 @@ LUALIB_API void luaI_openlib (lua_State *L, const char *libname,
 ** =======================================================
 */
 
-#ifndef luaL_getn
+#if defined(LUA_COMPAT_GETN)
 
 static int checkint (lua_State *L, int topop) {
   int n = (lua_type(L, -1) == LUA_TNUMBER) ? lua_tointeger(L, -1) : -1;