aboutsummaryrefslogtreecommitdiff
path: root/src/buffer.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/buffer.h
parent3a37ab88906bcdbad17051decc0e4c4c141a17c9 (diff)
downloadluasocket-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.h4
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;
34typedef t_buffer *p_buffer; 34typedef 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
38int buffer_open(lua_State *L); 40int buffer_open(lua_State *L);
39void buffer_init(p_buffer buf, p_io io, p_timeout tm); 41void 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);
43int buffer_meth_receive(lua_State *L, p_buffer buf); 45int buffer_meth_receive(lua_State *L, p_buffer buf);
44int buffer_isempty(p_buffer buf); 46int 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 */