aboutsummaryrefslogtreecommitdiff
path: root/src/luasocket.h
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2001-06-19 19:31:22 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2001-06-19 19:31:22 +0000
commitc16b6d931243bed0d41f2fe1b7fced48fa493268 (patch)
tree861801082ad562e69f2ce67c335b1d694a80f73d /src/luasocket.h
parentce0ad4c6b687aa6ff8aa24ef510e6e8716f9e995 (diff)
downloadluasocket-c16b6d931243bed0d41f2fe1b7fced48fa493268.tar.gz
luasocket-c16b6d931243bed0d41f2fe1b7fced48fa493268.tar.bz2
luasocket-c16b6d931243bed0d41f2fe1b7fced48fa493268.zip
LUASOCKET_API now prefixes all exported function declarations.
Diffstat (limited to 'src/luasocket.h')
-rw-r--r--src/luasocket.h9
1 files changed, 8 insertions, 1 deletions
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_ */