diff options
author | Diego Nehab <diego.nehab@gmail.com> | 2019-03-11 00:08:41 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-11 00:08:41 -0300 |
commit | c89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch) | |
tree | 1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/udp.h | |
parent | 2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff) | |
parent | 21514304be9e98a4386cb18542582068a59c5586 (diff) | |
download | luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.gz luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.tar.bz2 luasocket-c89a931cc31f219d51dd32a8a253d5ee3fbd31be.zip |
Merge pull request #271 from ewestbrook/pragmavisibility
Use visibility pragma around declarations instead of attributes on definitions
Diffstat (limited to 'src/udp.h')
-rw-r--r-- | src/udp.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -12,7 +12,7 @@ | |||
12 | * with a call to the setpeername function. The same function can be used to | 12 | * with a call to the setpeername function. The same function can be used to |
13 | * break the connection. | 13 | * break the connection. |
14 | \*=========================================================================*/ | 14 | \*=========================================================================*/ |
15 | #include "lua.h" | 15 | #include "luasocket.h" |
16 | 16 | ||
17 | #include "timeout.h" | 17 | #include "timeout.h" |
18 | #include "socket.h" | 18 | #include "socket.h" |
@@ -26,6 +26,14 @@ typedef struct t_udp_ { | |||
26 | } t_udp; | 26 | } t_udp; |
27 | typedef t_udp *p_udp; | 27 | typedef t_udp *p_udp; |
28 | 28 | ||
29 | #ifndef _WIN32 | ||
30 | #pragma GCC visibility push(hidden) | ||
31 | #endif | ||
32 | |||
29 | int udp_open(lua_State *L); | 33 | int udp_open(lua_State *L); |
30 | 34 | ||
35 | #ifndef _WIN32 | ||
36 | #pragma GCC visibility pop | ||
37 | #endif | ||
38 | |||
31 | #endif /* UDP_H */ | 39 | #endif /* UDP_H */ |