aboutsummaryrefslogtreecommitdiff
path: root/src/socket.h
diff options
context:
space:
mode:
authorE. Westbrook <github@westbrook.io>2019-02-28 16:32:07 -0700
committerE. Westbrook <github@westbrook.io>2019-03-10 00:04:20 -0700
commit21514304be9e98a4386cb18542582068a59c5586 (patch)
tree1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/socket.h
parent3a37ab88906bcdbad17051decc0e4c4c141a17c9 (diff)
downloadluasocket-21514304be9e98a4386cb18542582068a59c5586.tar.gz
luasocket-21514304be9e98a4386cb18542582068a59c5586.tar.bz2
luasocket-21514304be9e98a4386cb18542582068a59c5586.zip
wrap visibility pragmas in #ifndef _WIN32
Diffstat (limited to 'src/socket.h')
-rw-r--r--src/socket.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/socket.h b/src/socket.h
index 4adc562..e541f27 100644
--- a/src/socket.h
+++ b/src/socket.h
@@ -36,7 +36,9 @@ typedef struct sockaddr SA;
36* interface to sockets 36* interface to sockets
37\*=========================================================================*/ 37\*=========================================================================*/
38 38
39#ifndef _WIN32
39#pragma GCC visibility push(hidden) 40#pragma GCC visibility push(hidden)
41#endif
40 42
41int socket_waitfd(p_socket ps, int sw, p_timeout tm); 43int socket_waitfd(p_socket ps, int sw, p_timeout tm);
42int socket_open(void); 44int socket_open(void);
@@ -64,6 +66,8 @@ const char *socket_strerror(int err);
64const char *socket_ioerror(p_socket ps, int err); 66const char *socket_ioerror(p_socket ps, int err);
65const char *socket_gaistrerror(int err); 67const char *socket_gaistrerror(int err);
66 68
69#ifndef _WIN32
67#pragma GCC visibility pop 70#pragma GCC visibility pop
71#endif
68 72
69#endif /* SOCKET_H */ 73#endif /* SOCKET_H */