LUASOCKET_API now prefixes all exported function declarations.
This commit is contained in:
parent
ce0ad4c6b6
commit
c16b6d9312
2 changed files with 9 additions and 2 deletions
|
@ -1660,7 +1660,7 @@ static int receive_word(lua_State *L, p_sock sock)
|
||||||
* Initializes the library interface with Lua and the socket library.
|
* Initializes the library interface with Lua and the socket library.
|
||||||
* Defines the symbols exported to Lua.
|
* Defines the symbols exported to Lua.
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
void lua_socketlibopen(lua_State *L)
|
LUASOCKET_API void lua_socketlibopen(lua_State *L)
|
||||||
{
|
{
|
||||||
struct luaL_reg funcs[] = {
|
struct luaL_reg funcs[] = {
|
||||||
{"bind", global_tcpbind},
|
{"bind", global_tcpbind},
|
||||||
|
|
|
@ -20,10 +20,17 @@
|
||||||
#define LUASOCKET_UDPBUFFERSIZE 4096
|
#define LUASOCKET_UDPBUFFERSIZE 4096
|
||||||
/* note that 576 bytes is the maximum safe value */
|
/* note that 576 bytes is the maximum safe value */
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------------*\
|
||||||
|
* This macro prefixes all exported API functions
|
||||||
|
\*-------------------------------------------------------------------------*/
|
||||||
|
#ifndef LUASOCKET_API
|
||||||
|
#define LUASOCKET_API extern
|
||||||
|
#endif
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------*\
|
/*-------------------------------------------------------------------------*\
|
||||||
* Initializes the library interface with Lua and the socket library.
|
* Initializes the library interface with Lua and the socket library.
|
||||||
* Defines the symbols exported to Lua.
|
* Defines the symbols exported to Lua.
|
||||||
\*-------------------------------------------------------------------------*/
|
\*-------------------------------------------------------------------------*/
|
||||||
void lua_socketlibopen(lua_State *L);
|
LUASOCKET_API void lua_socketlibopen(lua_State *L);
|
||||||
|
|
||||||
#endif /* _LUASOCKET_H_ */
|
#endif /* _LUASOCKET_H_ */
|
||||||
|
|
Loading…
Add table
Reference in a new issue