aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-30 23:23:05 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-05-30 23:23:05 +0000
commit8841e0f3c12a9b7b0470919d721bbe443dbae3bd (patch)
treefbf218822785634d80f329e33dc7e98c4219e321 /src
parent5ca1049ab47f3f9ff9157f71af9072f04a637500 (diff)
downloadluasocket-8841e0f3c12a9b7b0470919d721bbe443dbae3bd.tar.gz
luasocket-8841e0f3c12a9b7b0470919d721bbe443dbae3bd.tar.bz2
luasocket-8841e0f3c12a9b7b0470919d721bbe443dbae3bd.zip
Updated projects for windows to generate dlls.
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