aboutsummaryrefslogtreecommitdiff
path: root/src/timeout.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/timeout.h
parent3a37ab88906bcdbad17051decc0e4c4c141a17c9 (diff)
downloadluasocket-21514304be9e98a4386cb18542582068a59c5586.tar.gz
luasocket-21514304be9e98a4386cb18542582068a59c5586.tar.bz2
luasocket-21514304be9e98a4386cb18542582068a59c5586.zip
wrap visibility pragmas in #ifndef _WIN32
Diffstat (limited to 'src/timeout.h')
-rw-r--r--src/timeout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timeout.h b/src/timeout.h
index df05eaf..9e5250d 100644
--- a/src/timeout.h
+++ b/src/timeout.h
@@ -14,7 +14,9 @@ typedef struct t_timeout_ {
14} t_timeout; 14} t_timeout;
15typedef t_timeout *p_timeout; 15typedef t_timeout *p_timeout;
16 16
17#ifndef _WIN32
17#pragma GCC visibility push(hidden) 18#pragma GCC visibility push(hidden)
19#endif
18 20
19void timeout_init(p_timeout tm, double block, double total); 21void timeout_init(p_timeout tm, double block, double total);
20double timeout_get(p_timeout tm); 22double timeout_get(p_timeout tm);
@@ -29,7 +31,9 @@ int timeout_open(lua_State *L);
29int timeout_meth_settimeout(lua_State *L, p_timeout tm); 31int timeout_meth_settimeout(lua_State *L, p_timeout tm);
30int timeout_meth_gettimeout(lua_State *L, p_timeout tm); 32int timeout_meth_gettimeout(lua_State *L, p_timeout tm);
31 33
34#ifndef _WIN32
32#pragma GCC visibility pop 35#pragma GCC visibility pop
36#endif
33 37
34#define timeout_iszero(tm) ((tm)->block == 0.0) 38#define timeout_iszero(tm) ((tm)->block == 0.0)
35 39