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/wsocket.c | |
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/wsocket.c')
-rwxr-xr-x | src/wsocket.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/wsocket.c b/src/wsocket.c index 1da984c..20da330 100755 --- a/src/wsocket.c +++ b/src/wsocket.c | |||
@@ -12,10 +12,6 @@ | |||
12 | #include "socket.h" | 12 | #include "socket.h" |
13 | #include "pierror.h" | 13 | #include "pierror.h" |
14 | 14 | ||
15 | #ifndef _WIN32 | ||
16 | #pragma GCC visibility push(hidden) | ||
17 | #endif | ||
18 | |||
19 | /* WinSock doesn't have a strerror... */ | 15 | /* WinSock doesn't have a strerror... */ |
20 | static const char *wstrerror(int err); | 16 | static const char *wstrerror(int err); |
21 | 17 | ||
@@ -436,7 +432,3 @@ const char *socket_gaistrerror(int err) { | |||
436 | default: return gai_strerror(err); | 432 | default: return gai_strerror(err); |
437 | } | 433 | } |
438 | } | 434 | } |
439 | |||
440 | #ifndef _WIN32 | ||
441 | #pragma GCC visibility pop | ||
442 | #endif | ||