aboutsummaryrefslogtreecommitdiff
path: root/src/udp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2019-03-11 00:08:41 -0300
committerGitHub <noreply@github.com>2019-03-11 00:08:41 -0300
commitc89a931cc31f219d51dd32a8a253d5ee3fbd31be (patch)
tree1fc604d7cbd6a42c801b92b145651d91c458dfa2 /src/udp.c
parent2af4872a401cbd0c1255e19ee26620f0431dd9f5 (diff)
parent21514304be9e98a4386cb18542582068a59c5586 (diff)
downloadluasocket-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.c')
-rw-r--r--src/udp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/udp.c b/src/udp.c
index e59fa1b..62b6a20 100644
--- a/src/udp.c
+++ b/src/udp.c
@@ -4,10 +4,6 @@
4\*=========================================================================*/ 4\*=========================================================================*/
5#include "luasocket.h" 5#include "luasocket.h"
6 6
7#include "lua.h"
8#include "lauxlib.h"
9#include "compat.h"
10
11#include "auxiliar.h" 7#include "auxiliar.h"
12#include "socket.h" 8#include "socket.h"
13#include "inet.h" 9#include "inet.h"
@@ -124,7 +120,7 @@ static luaL_Reg func[] = {
124/*-------------------------------------------------------------------------*\ 120/*-------------------------------------------------------------------------*\
125* Initializes module 121* Initializes module
126\*-------------------------------------------------------------------------*/ 122\*-------------------------------------------------------------------------*/
127LUASOCKET_PRIVATE int udp_open(lua_State *L) { 123int udp_open(lua_State *L) {
128 /* create classes */ 124 /* create classes */
129 auxiliar_newclass(L, "udp{connected}", udp_methods); 125 auxiliar_newclass(L, "udp{connected}", udp_methods);
130 auxiliar_newclass(L, "udp{unconnected}", udp_methods); 126 auxiliar_newclass(L, "udp{unconnected}", udp_methods);