aboutsummaryrefslogtreecommitdiff
path: root/src/luasocket.h
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/luasocket.h
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/luasocket.h')
-rw-r--r--src/luasocket.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/luasocket.h b/src/luasocket.h
index 0121a15..d22b1be 100644
--- a/src/luasocket.h
+++ b/src/luasocket.h
@@ -6,9 +6,8 @@
6* Diego Nehab 6* Diego Nehab
7* 9/11/1999 7* 9/11/1999
8\*=========================================================================*/ 8\*=========================================================================*/
9#include "lua.h"
10 9
11/*-------------------------------------------------------------------------*\ 10/*-------------------------------------------------------------------------* \
12* Current socket library version 11* Current socket library version
13\*-------------------------------------------------------------------------*/ 12\*-------------------------------------------------------------------------*/
14#define LUASOCKET_VERSION "LuaSocket 3.0-rc1" 13#define LUASOCKET_VERSION "LuaSocket 3.0-rc1"
@@ -25,13 +24,9 @@
25#endif 24#endif
26#endif 25#endif
27 26
28#ifndef LUASOCKET_PRIVATE 27#include "lua.h"
29#ifdef _WIN32 28#include "lauxlib.h"
30#define LUASOCKET_PRIVATE 29#include "compat.h"
31#else
32#define LUASOCKET_PRIVATE __attribute__ ((visibility ("hidden")))
33#endif
34#endif
35 30
36/*-------------------------------------------------------------------------*\ 31/*-------------------------------------------------------------------------*\
37* Initializes the library. 32* Initializes the library.