wrap visibility pragmas in #ifndef _WIN32

This commit is contained in:
E. Westbrook 2019-02-28 16:32:07 -07:00
parent 3a37ab8890
commit 21514304be
16 changed files with 56 additions and 17 deletions

View file

@ -12,10 +12,6 @@
#include "socket.h"
#include "pierror.h"
#ifndef _WIN32
#pragma GCC visibility push(hidden)
#endif
/* WinSock doesn't have a strerror... */
static const char *wstrerror(int err);
@ -436,7 +432,3 @@ const char *socket_gaistrerror(int err) {
default: return gai_strerror(err);
}
}
#ifndef _WIN32
#pragma GCC visibility pop
#endif