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/socket.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/socket.h')
| -rw-r--r-- | src/socket.h | 4 |
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 | ||
| 41 | int socket_waitfd(p_socket ps, int sw, p_timeout tm); | 43 | int socket_waitfd(p_socket ps, int sw, p_timeout tm); |
| 42 | int socket_open(void); | 44 | int socket_open(void); |
| @@ -64,6 +66,8 @@ const char *socket_strerror(int err); | |||
| 64 | const char *socket_ioerror(p_socket ps, int err); | 66 | const char *socket_ioerror(p_socket ps, int err); |
| 65 | const char *socket_gaistrerror(int err); | 67 | const 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 */ |
