aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luasocket.c2
-rw-r--r--src/luasocket.h9
2 files changed, 9 insertions, 2 deletions
diff --git a/src/luasocket.c b/src/luasocket.c
index 96733b5..f72615a 100644
--- a/src/luasocket.c
+++ b/src/luasocket.c
@@ -1660,7 +1660,7 @@ static int receive_word(lua_State *L, p_sock sock)
1660* Initializes the library interface with Lua and the socket library. 1660* Initializes the library interface with Lua and the socket library.
1661* Defines the symbols exported to Lua. 1661* Defines the symbols exported to Lua.
1662\*-------------------------------------------------------------------------*/ 1662\*-------------------------------------------------------------------------*/
1663void lua_socketlibopen(lua_State *L) 1663LUASOCKET_API void lua_socketlibopen(lua_State *L)
1664{ 1664{
1665 struct luaL_reg funcs[] = { 1665 struct luaL_reg funcs[] = {
1666 {"bind", global_tcpbind}, 1666 {"bind", global_tcpbind},
diff --git a/src/luasocket.h b/src/luasocket.h
index 4402c02..a580b2c 100644
--- a/src/luasocket.h
+++ b/src/luasocket.h
@@ -21,9 +21,16 @@
21/* note that 576 bytes is the maximum safe value */ 21/* note that 576 bytes is the maximum safe value */
22 22
23/*-------------------------------------------------------------------------*\ 23/*-------------------------------------------------------------------------*\
24* This macro prefixes all exported API functions
25\*-------------------------------------------------------------------------*/
26#ifndef LUASOCKET_API
27#define LUASOCKET_API extern
28#endif
29
30/*-------------------------------------------------------------------------*\
24* Initializes the library interface with Lua and the socket library. 31* Initializes the library interface with Lua and the socket library.
25* Defines the symbols exported to Lua. 32* Defines the symbols exported to Lua.
26\*-------------------------------------------------------------------------*/ 33\*-------------------------------------------------------------------------*/
27void lua_socketlibopen(lua_State *L); 34LUASOCKET_API void lua_socketlibopen(lua_State *L);
28 35
29#endif /* _LUASOCKET_H_ */ 36#endif /* _LUASOCKET_H_ */