diff options
Diffstat (limited to 'loadlib.c')
| -rw-r--r-- | loadlib.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.54 2006/07/03 20:16:49 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.55 2006/09/11 14:07:24 roberto Exp roberto $ |
| 3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | ** | 5 | ** |
| @@ -89,8 +89,6 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { | |||
| 89 | ** ======================================================================= | 89 | ** ======================================================================= |
| 90 | */ | 90 | */ |
| 91 | 91 | ||
| 92 | #include <windows.h> | ||
| 93 | |||
| 94 | 92 | ||
| 95 | #undef setprogdir | 93 | #undef setprogdir |
| 96 | 94 | ||
| @@ -382,7 +380,7 @@ static int loader_Lua (lua_State *L) { | |||
| 382 | const char *name = luaL_checkstring(L, 1); | 380 | const char *name = luaL_checkstring(L, 1); |
| 383 | filename = findfile(L, name, "path"); | 381 | filename = findfile(L, name, "path"); |
| 384 | if (filename == NULL) return 1; /* library not found in this path */ | 382 | if (filename == NULL) return 1; /* library not found in this path */ |
| 385 | if (luaL_loadfile(L, filename) != 0) | 383 | if (luaL_loadfile(L, filename) != LUA_OK) |
| 386 | loaderror(L, filename); | 384 | loaderror(L, filename); |
| 387 | return 1; /* library loaded successfully */ | 385 | return 1; /* library loaded successfully */ |
| 388 | } | 386 | } |
