diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-27 20:57:25 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-03-10 00:03:04 -0700 |
commit | ee30e4643d276c82775010534cb4877a31bde2f9 (patch) | |
tree | 70292de5ab13bef9aed9006730ff31cc7e818516 /src/io.h | |
parent | 611cdd19cc8cf783f028d558cf23e9397db4fa1f (diff) | |
download | luasocket-ee30e4643d276c82775010534cb4877a31bde2f9.tar.gz luasocket-ee30e4643d276c82775010534cb4877a31bde2f9.tar.bz2 luasocket-ee30e4643d276c82775010534cb4877a31bde2f9.zip |
io: pragma visibility
Diffstat (limited to 'src/io.h')
-rw-r--r-- | src/io.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -12,9 +12,7 @@ | |||
12 | * The module socket.h implements this interface, and thus the module tcp.h | 12 | * The module socket.h implements this interface, and thus the module tcp.h |
13 | * is very simple. | 13 | * is very simple. |
14 | \*=========================================================================*/ | 14 | \*=========================================================================*/ |
15 | #include <stdio.h> | 15 | #include "luasocket.h" |
16 | #include "lua.h" | ||
17 | |||
18 | #include "timeout.h" | 16 | #include "timeout.h" |
19 | 17 | ||
20 | /* IO error codes */ | 18 | /* IO error codes */ |
@@ -58,8 +56,12 @@ typedef struct t_io_ { | |||
58 | } t_io; | 56 | } t_io; |
59 | typedef t_io *p_io; | 57 | typedef t_io *p_io; |
60 | 58 | ||
59 | #pragma GCC visibility push(hidden) | ||
60 | |||
61 | void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx); | 61 | void io_init(p_io io, p_send send, p_recv recv, p_error error, void *ctx); |
62 | const char *io_strerror(int err); | 62 | const char *io_strerror(int err); |
63 | 63 | ||
64 | #pragma GCC visibility pop | ||
65 | |||
64 | #endif /* IO_H */ | 66 | #endif /* IO_H */ |
65 | 67 | ||