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/tcp.c | |
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/tcp.c')
-rw-r--r-- | src/tcp.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -4,12 +4,7 @@ | |||
4 | \*=========================================================================*/ | 4 | \*=========================================================================*/ |
5 | #include "luasocket.h" | 5 | #include "luasocket.h" |
6 | 6 | ||
7 | #include "lua.h" | ||
8 | #include "lauxlib.h" | ||
9 | |||
10 | #include "compat.h" | ||
11 | #include "auxiliar.h" | 7 | #include "auxiliar.h" |
12 | |||
13 | #include "socket.h" | 8 | #include "socket.h" |
14 | #include "inet.h" | 9 | #include "inet.h" |
15 | #include "options.h" | 10 | #include "options.h" |
@@ -129,7 +124,7 @@ static luaL_Reg func[] = { | |||
129 | /*-------------------------------------------------------------------------*\ | 124 | /*-------------------------------------------------------------------------*\ |
130 | * Initializes module | 125 | * Initializes module |
131 | \*-------------------------------------------------------------------------*/ | 126 | \*-------------------------------------------------------------------------*/ |
132 | LUASOCKET_PRIVATE int tcp_open(lua_State *L) | 127 | int tcp_open(lua_State *L) |
133 | { | 128 | { |
134 | /* create classes */ | 129 | /* create classes */ |
135 | auxiliar_newclass(L, "tcp{master}", tcp_methods); | 130 | auxiliar_newclass(L, "tcp{master}", tcp_methods); |