aboutsummaryrefslogtreecommitdiff
path: root/src/io.h
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/io.h
parent3a37ab88906bcdbad17051decc0e4c4c141a17c9 (diff)
downloadluasocket-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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/io.h b/src/io.h
index e08eb0e..b8a54df 100644
--- a/src/io.h
+++ b/src/io.h
@@ -56,12 +56,15 @@ typedef struct t_io_ {
56} t_io; 56} t_io;
57typedef t_io *p_io; 57typedef 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
61void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx); 63void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx);
62const char *io_strerror(int err); 64const 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