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/timeout.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/timeout.h')
-rw-r--r-- | src/timeout.h | 4 |
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; |
15 | typedef t_timeout *p_timeout; | 15 | typedef 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 | ||
19 | void timeout_init(p_timeout tm, double block, double total); | 21 | void timeout_init(p_timeout tm, double block, double total); |
20 | double timeout_get(p_timeout tm); | 22 | double timeout_get(p_timeout tm); |
@@ -29,7 +31,9 @@ int timeout_open(lua_State *L); | |||
29 | int timeout_meth_settimeout(lua_State *L, p_timeout tm); | 31 | int timeout_meth_settimeout(lua_State *L, p_timeout tm); |
30 | int timeout_meth_gettimeout(lua_State *L, p_timeout tm); | 32 | int 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 | ||