diff options
author | E. Westbrook <github@westbrook.io> | 2019-02-27 20:57:34 -0700 |
---|---|---|
committer | E. Westbrook <github@westbrook.io> | 2019-03-10 00:03:04 -0700 |
commit | 2015290cb47a804e098a0bf44d349955e453c23a (patch) | |
tree | 532bc62795caa31d33e8c09f1006b3c5b7942d5e /src | |
parent | ee30e4643d276c82775010534cb4877a31bde2f9 (diff) | |
download | luasocket-2015290cb47a804e098a0bf44d349955e453c23a.tar.gz luasocket-2015290cb47a804e098a0bf44d349955e453c23a.tar.bz2 luasocket-2015290cb47a804e098a0bf44d349955e453c23a.zip |
luasocket: include centralization
Diffstat (limited to 'src')
-rwxr-xr-x | src/luasocket.c | 10 | ||||
-rw-r--r-- | src/luasocket.h | 13 |
2 files changed, 4 insertions, 19 deletions
diff --git a/src/luasocket.c b/src/luasocket.c index d2752a7..0fd99f7 100755 --- a/src/luasocket.c +++ b/src/luasocket.c | |||
@@ -12,16 +12,6 @@ | |||
12 | * standard Lua read and write functions. | 12 | * standard Lua read and write functions. |
13 | \*=========================================================================*/ | 13 | \*=========================================================================*/ |
14 | 14 | ||
15 | /*=========================================================================*\ | ||
16 | * Standard include files | ||
17 | \*=========================================================================*/ | ||
18 | #include "lua.h" | ||
19 | #include "lauxlib.h" | ||
20 | #include "compat.h" | ||
21 | |||
22 | /*=========================================================================*\ | ||
23 | * LuaSocket includes | ||
24 | \*=========================================================================*/ | ||
25 | #include "luasocket.h" | 15 | #include "luasocket.h" |
26 | #include "auxiliar.h" | 16 | #include "auxiliar.h" |
27 | #include "except.h" | 17 | #include "except.h" |
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. |