From 8841e0f3c12a9b7b0470919d721bbe443dbae3bd Mon Sep 17 00:00:00 2001 From: Diego Nehab Date: Sun, 30 May 2004 23:23:05 +0000 Subject: Updated projects for windows to generate dlls. --- src/mime.c | 2 +- src/mime.h | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'src') 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]; /*-------------------------------------------------------------------------*\ * Initializes module \*-------------------------------------------------------------------------*/ -int luaopen_mime(lua_State *L) +MIME_API int luaopen_mime(lua_State *L) { lua_pushstring(L, MIME_LIBNAME); 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 @@ \*=========================================================================*/ #include -int luaopen_mime(lua_State *L); +/*-------------------------------------------------------------------------*\ +* This macro prefixes all exported API functions +\*-------------------------------------------------------------------------*/ +#ifndef MIME_API +#define MIME_API extern +#endif + +MIME_API int luaopen_mime(lua_State *L); /*-------------------------------------------------------------------------*\ * Library's namespace -- cgit v1.2.3-55-g6feb