diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-28 16:32:07 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-03-10 00:04:20 -0700 |
commit | 21514304be9e98a4386cb18542582068a59c5586 (patch) | |
tree | 1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/tcp.h | |
parent | 3a37ab88906bcdbad17051decc0e4c4c141a17c9 (diff) | |
download | luasocket-21514304be9e98a4386cb18542582068a59c5586.tar.gz luasocket-21514304be9e98a4386cb18542582068a59c5586.tar.bz2 luasocket-21514304be9e98a4386cb18542582068a59c5586.zip |
wrap visibility pragmas in #ifndef _WIN32
Diffstat (limited to 'src/tcp.h')
-rw-r--r-- | src/tcp.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -30,10 +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 | ||
33 | #pragma GCC visibility push(hidden) | 34 | #pragma GCC visibility push(hidden) |
35 | #endif | ||
34 | 36 | ||
35 | int tcp_open(lua_State *L); | 37 | int tcp_open(lua_State *L); |
36 | 38 | ||
39 | #ifndef _WIN32 | ||
37 | #pragma GCC visibility pop | 40 | #pragma GCC visibility pop |
41 | #endif | ||
38 | 42 | ||
39 | #endif /* TCP_H */ | 43 | #endif /* TCP_H */ |