diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-03-11 00:08:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 00:08:41 -0300 |
commit | c89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch) | |
tree | 1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/tcp.h | |
parent | 2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff) | |
parent | 21514304be9e98a4386cb18542582068a59c5586 (diff) | |
download | luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.gz luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.bz2 luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.zip |
Merge pull request #271 from ewestbrook/pragmavisibility
Use visibility pragma around declarations instead of attributes on definitions
Diffstat (limited to 'src/tcp.h')
-rw-r--r-- | src/tcp.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -14,7 +14,7 @@ | |||
14 | * tcp objects either connected to some address or returned by the accept | 14 | * tcp objects either connected to some address or returned by the accept |
15 | * method of a server object. | 15 | * method of a server object. |
16 | \*=========================================================================*/ | 16 | \*=========================================================================*/ |
17 | #include "lua.h" | 17 | #include "luasocket.h" |
18 | 18 | ||
19 | #include "buffer.h" | 19 | #include "buffer.h" |
20 | #include "timeout.h" | 20 | #include "timeout.h" |
@@ -30,6 +30,14 @@ typedef struct t_tcp_ { | |||
30 | 30 | ||
31 | typedef t_tcp *p_tcp; | 31 | typedef t_tcp *p_tcp; |
32 | 32 | ||
33 | #ifndef _WIN32 | ||
34 | #pragma GCC visibility push(hidden) | ||
35 | #endif | ||
36 | |||
33 | int tcp_open(lua_State *L); | 37 | int tcp_open(lua_State *L); |
34 | 38 | ||
39 | #ifndef _WIN32 | ||
40 | #pragma GCC visibility pop | ||
41 | #endif | ||
42 | |||
35 | #endif /* TCP_H */ | 43 | #endif /* TCP_H */ |