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/buffer.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/buffer.h')
-rw-r--r-- | src/buffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index 4218ea0..a0901fc 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
@@ -33,7 +33,9 @@ typedef struct t_buffer_ { | |||
33 | } t_buffer; | 33 | } t_buffer; |
34 | typedef t_buffer *p_buffer; | 34 | typedef t_buffer *p_buffer; |
35 | 35 | ||
36 | #ifndef _WIN32 | ||
36 | #pragma GCC visibility push(hidden) | 37 | #pragma GCC visibility push(hidden) |
38 | #endif | ||
37 | 39 | ||
38 | int buffer_open(lua_State *L); | 40 | int buffer_open(lua_State *L); |
39 | void buffer_init(p_buffer buf, p_io io, p_timeout tm); | 41 | void buffer_init(p_buffer buf, p_io io, p_timeout tm); |
@@ -43,6 +45,8 @@ int buffer_meth_send(lua_State *L, p_buffer buf); | |||
43 | int buffer_meth_receive(lua_State *L, p_buffer buf); | 45 | int buffer_meth_receive(lua_State *L, p_buffer buf); |
44 | int buffer_isempty(p_buffer buf); | 46 | int buffer_isempty(p_buffer buf); |
45 | 47 | ||
48 | #ifndef _WIN32 | ||
46 | #pragma GCC visibility pop | 49 | #pragma GCC visibility pop |
50 | #endif | ||
47 | 51 | ||
48 | #endif /* BUF_H */ | 52 | #endif /* BUF_H */ |