diff options
Diffstat (limited to 'loadlib.c')
-rw-r--r-- | loadlib.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.18 2005/02/28 15:58:48 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.19 2005/03/07 18:07:34 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 | * |
@@ -33,7 +33,7 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym); | |||
33 | 33 | ||
34 | 34 | ||
35 | 35 | ||
36 | #if defined(USE_DLOPEN) | 36 | #if defined(LUA_USEDLOPEN) |
37 | /* | 37 | /* |
38 | ** {======================================================================== | 38 | ** {======================================================================== |
39 | ** This is an implementation of loadlib based on the dlfcn interface. | 39 | ** 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) { | |||
67 | 67 | ||
68 | 68 | ||
69 | 69 | ||
70 | #elif defined(USE_DLL) | 70 | #elif defined(LUA_USEDLL) |
71 | /* | 71 | /* |
72 | ** {====================================================================== | 72 | ** {====================================================================== |
73 | ** This is an implementation of loadlib for Windows using native functions. | 73 | ** 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) { | |||
109 | 109 | ||
110 | 110 | ||
111 | 111 | ||
112 | #elif defined(USE_DYLD) | 112 | #elif defined(LUA_USEDYLD) |
113 | /* | 113 | /* |
114 | ** {====================================================================== | 114 | ** {====================================================================== |
115 | ** Native Mac OS X / Darwin Implementation | 115 | ** Native Mac OS X / Darwin Implementation |
@@ -119,6 +119,7 @@ static lua_CFunction ll_sym (lua_State *L, void *lib, const char *sym) { | |||
119 | #include <mach-o/dyld.h> | 119 | #include <mach-o/dyld.h> |
120 | 120 | ||
121 | 121 | ||
122 | /* Mac appends a `_' before C function names */ | ||
122 | #undef POF | 123 | #undef POF |
123 | #define POF "_" LUA_POF | 124 | #define POF "_" LUA_POF |
124 | 125 | ||