Software /
code /
prosody
Comparison
util-src/windows.c @ 6413:a552f4170aed
util-src/*.c: Add macro for compiling with Lua 5.2
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 17 Sep 2014 14:30:29 +0200 |
parent | 6412:0e94f89d0e62 |
child | 6615:8e4572a642cb |
comparison
equal
deleted
inserted
replaced
6412:0e94f89d0e62 | 6413:a552f4170aed |
---|---|
16 #include <windows.h> | 16 #include <windows.h> |
17 #include <windns.h> | 17 #include <windns.h> |
18 | 18 |
19 #include "lua.h" | 19 #include "lua.h" |
20 #include "lauxlib.h" | 20 #include "lauxlib.h" |
21 | |
22 #if (LUA_VERSION_NUM == 502) | |
23 #define luaL_register(L, N, R) luaL_setfuncs(L, R, 0) | |
24 #endif | |
21 | 25 |
22 static int Lget_nameservers(lua_State *L) { | 26 static int Lget_nameservers(lua_State *L) { |
23 char stack_buffer[1024]; // stack allocated buffer | 27 char stack_buffer[1024]; // stack allocated buffer |
24 IP4_ARRAY* ips = (IP4_ARRAY*) stack_buffer; | 28 IP4_ARRAY* ips = (IP4_ARRAY*) stack_buffer; |
25 DWORD len = sizeof(stack_buffer); | 29 DWORD len = sizeof(stack_buffer); |