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/io.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/io.h')
-rw-r--r-- | src/io.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -56,12 +56,15 @@ typedef struct t_io_ { | |||
56 | } t_io; | 56 | } t_io; |
57 | typedef t_io *p_io; | 57 | typedef t_io *p_io; |
58 | 58 | ||
59 | #ifndef _WIN32 | ||
59 | #pragma GCC visibility push(hidden) | 60 | #pragma GCC visibility push(hidden) |
61 | #endif | ||
60 | 62 | ||
61 | void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx); | 63 | void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx); |
62 | const char *io_strerror(int err); | 64 | const char *io_strerror(int err); |
63 | 65 | ||
66 | #ifndef _WIN32 | ||
64 | #pragma GCC visibility pop | 67 | #pragma GCC visibility pop |
68 | #endif | ||
65 | 69 | ||
66 | #endif /* IO_H */ | 70 | #endif /* IO_H */ |
67 | |||