aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mime.c2
-rw-r--r--src/mime.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/mime.c b/src/mime.c
index 8cfcd26..966509b 100644
--- a/src/mime.c
+++ b/src/mime.c
@@ -74,7 +74,7 @@ static UC b64unbase[256];
74/*-------------------------------------------------------------------------*\ 74/*-------------------------------------------------------------------------*\
75* Initializes module 75* Initializes module
76\*-------------------------------------------------------------------------*/ 76\*-------------------------------------------------------------------------*/
77int luaopen_mime(lua_State *L) 77MIME_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");
diff --git a/src/mime.h b/src/mime.h
index fee4e5e..35389f0 100644
--- a/src/mime.h
+++ b/src/mime.h
@@ -12,7 +12,14 @@
12\*=========================================================================*/ 12\*=========================================================================*/
13#include <lua.h> 13#include <lua.h>
14 14
15int 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
22MIME_API int luaopen_mime(lua_State *L);
16 23
17/*-------------------------------------------------------------------------*\ 24/*-------------------------------------------------------------------------*\
18* Library's namespace 25* Library's namespace