aboutsummaryrefslogtreecommitdiff
path: root/loadlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadlib.c')
-rw-r--r--loadlib.c26
1 files changed, 3 insertions, 23 deletions
diff --git a/loadlib.c b/loadlib.c
index ed40fbe4..961eeab5 100644
--- a/loadlib.c
+++ b/loadlib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loadlib.c,v 1.3 2003/04/02 13:09:14 roberto Exp roberto $ 2** $Id: loadlib.c,v 1.4 2003/04/07 20:11:53 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*
@@ -136,33 +136,13 @@ static int loadlib(lua_State *L)
136** Those systems support dlopen, so they should have defined USE_DLOPEN. 136** Those systems support dlopen, so they should have defined USE_DLOPEN.
137** The default (no)implementation gives them a special error message. 137** The default (no)implementation gives them a special error message.
138*/ 138*/
139#ifdef linux 139#if defined(linux) || defined(sun) || defined(sgi) || defined(BSD) || defined(_WIN32)
140#define LOADLIB
141#endif
142
143#ifdef sun
144#define LOADLIB
145#endif
146
147#ifdef sgi
148#define LOADLIB
149#endif
150
151#ifdef BSD
152#define LOADLIB
153#endif
154
155#ifdef _WIN32
156#define LOADLIB
157#endif
158
159#ifdef LOADLIB
160#undef LOADLIB
161#define LOADLIB "`loadlib' not installed (check your Lua configuration)" 140#define LOADLIB "`loadlib' not installed (check your Lua configuration)"
162#else 141#else
163#define LOADLIB "`loadlib' not supported" 142#define LOADLIB "`loadlib' not supported"
164#endif 143#endif
165 144
145
166static int loadlib(lua_State *L) 146static int loadlib(lua_State *L)
167{ 147{
168 lua_pushnil(L); 148 lua_pushnil(L);