From f8df21bd2071c4e3729d37d1552f54ca2742551a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 8 Mar 2005 17:10:05 -0300 Subject: `luaconf.h´ exports all its definitions always (so all of them must have a lua/LUA prefix). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- loadlib.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'loadlib.c') diff --git a/loadlib.c b/loadlib.c index 21a6d0d8..545d062b 100644 --- a/loadlib.c +++ b/loadlib.c @@ -1,5 +1,5 @@ /* -** $Id: loadlib.c,v 1.18 2005/02/28 15:58:48 roberto Exp roberto $ +** $Id: loadlib.c,v 1.19 2005/03/07 18:07:34 roberto Exp roberto $ ** Dynamic library loader for Lua ** See Copyright Notice in lua.h * @@ -33,7 +33,7 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym); -#if defined(USE_DLOPEN) +#if defined(LUA_USEDLOPEN) /* ** {======================================================================== ** This is an implementation of loadlib based on the dlfcn interface. @@ -67,7 +67,7 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { -#elif defined(USE_DLL) +#elif defined(LUA_USEDLL) /* ** {====================================================================== ** This is an implementation of loadlib for Windows using native functions. @@ -109,7 +109,7 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { -#elif defined(USE_DYLD) +#elif defined(LUA_USEDYLD) /* ** {====================================================================== ** Native Mac OS X / Darwin Implementation @@ -119,6 +119,7 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { #include +/* Mac appends a `_' before C function names */ #undef POF #define POF "_" LUA_POF -- cgit v1.2.3-55-g6feb