diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-02-26 00:06:02 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-26 00:06:02 -0300 |
commit | c0fba03e4fe2a27a3471fa5af290be931f957002 (patch) | |
tree | 7a5f40572dd9ad9a6b56749cc256f7b658946873 /src/unix.h | |
parent | 9b3f7a430454dc9568dfb063fbc324b29c5134d7 (diff) | |
parent | e2e43d62fa925e7e22385505ed0c635255c77c0a (diff) | |
download | luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.gz luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.tar.bz2 luasocket-c0fba03e4fe2a27a3471fa5af290be931f957002.zip |
Merge pull request #270 from ewestbrook/functionvisibility
Tag functions explicitly for shared library visibility
Diffstat (limited to 'src/unix.h')
-rw-r--r-- | src/unix.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -7,16 +7,13 @@ | |||
7 | * This module is just an example of how to extend LuaSocket with a new | 7 | * This module is just an example of how to extend LuaSocket with a new |
8 | * domain. | 8 | * domain. |
9 | \*=========================================================================*/ | 9 | \*=========================================================================*/ |
10 | #include "luasocket.h" | ||
10 | #include "lua.h" | 11 | #include "lua.h" |
11 | 12 | ||
12 | #include "buffer.h" | 13 | #include "buffer.h" |
13 | #include "timeout.h" | 14 | #include "timeout.h" |
14 | #include "socket.h" | 15 | #include "socket.h" |
15 | 16 | ||
16 | #ifndef UNIX_API | ||
17 | #define UNIX_API extern | ||
18 | #endif | ||
19 | |||
20 | typedef struct t_unix_ { | 17 | typedef struct t_unix_ { |
21 | t_socket sock; | 18 | t_socket sock; |
22 | t_io io; | 19 | t_io io; |
@@ -25,6 +22,6 @@ typedef struct t_unix_ { | |||
25 | } t_unix; | 22 | } t_unix; |
26 | typedef t_unix *p_unix; | 23 | typedef t_unix *p_unix; |
27 | 24 | ||
28 | UNIX_API int luaopen_socket_unix(lua_State *L); | 25 | LUASOCKET_API int luaopen_socket_unix(lua_State *L); |
29 | 26 | ||
30 | #endif /* UNIX_H */ | 27 | #endif /* UNIX_H */ |