diff options
author | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
---|---|---|
committer | Caleb Maclennan <caleb@alerque.com> | 2023-11-10 09:12:04 +0300 |
commit | 5c4fc93d5f4137bf4c22ddf1a048c907a4a26727 (patch) | |
tree | a9a68e1f6a9c3bfe2b64fa1c3a4098865b7d3b5d /src/io.h | |
parent | ccef3bc4e2aa6ee5b997a80aabb58f4ff0b0e98f (diff) | |
parent | 43a97b7f0053313b43906371dbdc226271e6c8ab (diff) | |
download | luasocket-hjelmeland-patch-1.tar.gz luasocket-hjelmeland-patch-1.tar.bz2 luasocket-hjelmeland-patch-1.zip |
Merge branch 'master' into hjelmeland-patch-1hjelmeland-patch-1
Diffstat (limited to '')
-rw-r--r-- | src/io.h | 13 |
1 files changed, 9 insertions, 4 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,15 @@ 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 | #ifndef _WIN32 | ||
60 | #pragma GCC visibility push(hidden) | ||
61 | #endif | ||
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 | ||
64 | #endif /* IO_H */ | 66 | #ifndef _WIN32 |
67 | #pragma GCC visibility pop | ||
68 | #endif | ||
65 | 69 | ||
70 | #endif /* IO_H */ | ||