diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mime.c | 2 | ||||
-rw-r--r-- | src/mime.h | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -74,7 +74,7 @@ static UC b64unbase[256]; | |||
74 | /*-------------------------------------------------------------------------*\ | 74 | /*-------------------------------------------------------------------------*\ |
75 | * Initializes module | 75 | * Initializes module |
76 | \*-------------------------------------------------------------------------*/ | 76 | \*-------------------------------------------------------------------------*/ |
77 | int luaopen_mime(lua_State *L) | 77 | MIME_API int luaopen_mime(lua_State *L) |
78 | { | 78 | { |
79 | lua_pushstring(L, MIME_LIBNAME); | 79 | lua_pushstring(L, MIME_LIBNAME); |
80 | lua_setglobal(L, "MIME_LIBNAME"); | 80 | lua_setglobal(L, "MIME_LIBNAME"); |
@@ -12,7 +12,14 @@ | |||
12 | \*=========================================================================*/ | 12 | \*=========================================================================*/ |
13 | #include <lua.h> | 13 | #include <lua.h> |
14 | 14 | ||
15 | int luaopen_mime(lua_State *L); | 15 | /*-------------------------------------------------------------------------*\ |
16 | * This macro prefixes all exported API functions | ||
17 | \*-------------------------------------------------------------------------*/ | ||
18 | #ifndef MIME_API | ||
19 | #define MIME_API extern | ||
20 | #endif | ||
21 | |||
22 | MIME_API int luaopen_mime(lua_State *L); | ||
16 | 23 | ||
17 | /*-------------------------------------------------------------------------*\ | 24 | /*-------------------------------------------------------------------------*\ |
18 | * Library's namespace | 25 | * Library's namespace |