diff options
| author | Liam Devine <dmail00@gmail.com> | 2011-07-04 23:31:14 +0100 |
|---|---|---|
| committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:33:34 -0700 |
| commit | e15ed19db6eb3385c1b35219c2dfa11953c3d47e (patch) | |
| tree | 4e38a0b05ac7cbaaa449f2b32dc959409ceae9ea /src/luasocket.h | |
| parent | a984607f28d0a802acaf1a16da225234af769baa (diff) | |
| download | luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.gz luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.tar.bz2 luasocket-e15ed19db6eb3385c1b35219c2dfa11953c3d47e.zip | |
Compiles with Lua 5.1.4 and Lua 5.2.0-beta, although the makefile needs sorting out to take maybe a version number and also the local paths need removing.
Diffstat (limited to 'src/luasocket.h')
| -rw-r--r-- | src/luasocket.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/luasocket.h b/src/luasocket.h index 3949421..608ff7b 100644 --- a/src/luasocket.h +++ b/src/luasocket.h | |||
| @@ -11,7 +11,7 @@ | |||
| 11 | /*-------------------------------------------------------------------------*\ | 11 | /*-------------------------------------------------------------------------*\ |
| 12 | * Current socket library version | 12 | * Current socket library version |
| 13 | \*-------------------------------------------------------------------------*/ | 13 | \*-------------------------------------------------------------------------*/ |
| 14 | #define LUASOCKET_VERSION "LuaSocket 2.1.0" | 14 | #define LUASOCKET_VERSION "LuaSocket 2.1.1" |
| 15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2011 Diego Nehab" | 15 | #define LUASOCKET_COPYRIGHT "Copyright (C) 1999-2011 Diego Nehab" |
| 16 | #define LUASOCKET_AUTHORS "Diego Nehab" | 16 | #define LUASOCKET_AUTHORS "Diego Nehab" |
| 17 | 17 | ||
| @@ -22,6 +22,10 @@ | |||
| 22 | #define LUASOCKET_API extern | 22 | #define LUASOCKET_API extern |
| 23 | #endif | 23 | #endif |
| 24 | 24 | ||
| 25 | #if LUA_VERSION_NUM > 501 & !( defined LUA_COMPAT_MODULE) | ||
| 26 | # error Lua 5.2 requires LUA_COMPAT_MODULE defined for luaL_openlib | ||
| 27 | #endif | ||
| 28 | |||
| 25 | /*-------------------------------------------------------------------------*\ | 29 | /*-------------------------------------------------------------------------*\ |
| 26 | * Initializes the library. | 30 | * Initializes the library. |
| 27 | \*-------------------------------------------------------------------------*/ | 31 | \*-------------------------------------------------------------------------*/ |
