diff options
Diffstat (limited to '')
-rw-r--r-- | src/luasocket.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/luasocket.h b/src/luasocket.h index f75d21f..1017fba 100644 --- a/src/luasocket.h +++ b/src/luasocket.h | |||
@@ -6,21 +6,28 @@ | |||
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.0" |
15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2013 Diego Nehab" | 14 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2013 Diego Nehab" |
16 | 15 | ||
17 | /*-------------------------------------------------------------------------*\ | 16 | /*-------------------------------------------------------------------------*\ |
18 | * This macro prefixes all exported API functions | 17 | * This macro prefixes all exported API functions |
19 | \*-------------------------------------------------------------------------*/ | 18 | \*-------------------------------------------------------------------------*/ |
20 | #ifndef LUASOCKET_API | 19 | #ifndef LUASOCKET_API |
21 | #define LUASOCKET_API extern | 20 | #ifdef _WIN32 |
21 | #define LUASOCKET_API __declspec(dllexport) | ||
22 | #else | ||
23 | #define LUASOCKET_API __attribute__ ((visibility ("default"))) | ||
24 | #endif | ||
22 | #endif | 25 | #endif |
23 | 26 | ||
27 | #include "lua.h" | ||
28 | #include "lauxlib.h" | ||
29 | #include "compat.h" | ||
30 | |||
24 | /*-------------------------------------------------------------------------*\ | 31 | /*-------------------------------------------------------------------------*\ |
25 | * Initializes the library. | 32 | * Initializes the library. |
26 | \*-------------------------------------------------------------------------*/ | 33 | \*-------------------------------------------------------------------------*/ |