aboutsummaryrefslogtreecommitdiff
path: root/src/wsocket.c
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/wsocket.c
parent3a37ab88906bcdbad17051decc0e4c4c141a17c9 (diff)
downloadluasocket-21514304be9e98a4386cb18542582068a59c5586.tar.gz
luasocket-21514304be9e98a4386cb18542582068a59c5586.tar.bz2
luasocket-21514304be9e98a4386cb18542582068a59c5586.zip
wrap visibility pragmas in #ifndef _WIN32
Diffstat (limited to 'src/wsocket.c')
-rwxr-xr-xsrc/wsocket.c8
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... */
20static const char *wstrerror(int err); 16static 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