From efc4bb3e2df90732d46b8b1cdae18c8173bad07b Mon Sep 17 00:00:00 2001 From: "E. Westbrook" Date: Mon, 25 Feb 2019 15:55:04 -0700 Subject: [PATCH] mime.h: use LUASOCKET_API --- src/mime.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mime.h b/src/mime.h index 99968a5..e57fc9c 100644 --- a/src/mime.h +++ b/src/mime.h @@ -8,6 +8,7 @@ * and formatting conforming to RFC 2045. It is used by mime.lua, which * provide a higher level interface to this functionality. \*=========================================================================*/ +#include "luasocket.h" #include "lua.h" /*-------------------------------------------------------------------------*\ @@ -17,13 +18,6 @@ #define MIME_COPYRIGHT "Copyright (C) 2004-2013 Diego Nehab" #define MIME_AUTHORS "Diego Nehab" -/*-------------------------------------------------------------------------*\ -* This macro prefixes all exported API functions -\*-------------------------------------------------------------------------*/ -#ifndef MIME_API -#define MIME_API extern -#endif - -MIME_API int luaopen_mime_core(lua_State *L); +LUASOCKET_API int luaopen_mime_core(lua_State *L); #endif /* MIME_H */