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

@ -22,7 +22,9 @@
#define LUASOCKET_INET_ATON
#endif
#ifndef _WIN32
#pragma GCC visibility push(hidden)
#endif
int inet_open(lua_State *L);
@ -47,6 +49,8 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t cnt);
int inet_pton(int af, const char *src, void *dst);
#endif
#ifndef _WIN32
#pragma GCC visibility pop
#endif
#endif /* INET_H */