Open Akkuma opened 10 years ago
See https://github.com/mpx/lua-cjson/pull/1 You'll need to download the sources (luarocks unpack lua-cjson will do) and then apply the changes.
Is there any chance that some of PR will be merged ( #1 or #20 or #26)?
I have merged #20, does this help with your case?
Are there are changes that are required to improve support other targets?
cl /nologo /MD /O2 -c -Folua_cjson.obj -Ic:/Lua/5.1/include/ lua_cjson.c -DDISABLE_INVALID_NUMBERS
lua_cjson.c
f:\e\projects\lua-cjson\strbuf.h(78) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(79) : error C2085: 'strbuf_reset' : not in formal parameter list
f:\e\projects\lua-cjson\strbuf.h(79) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(83) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(84) : error C2085: 'strbuf_allocated' : not in formal parameter list
f:\e\projects\lua-cjson\strbuf.h(84) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(90) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(91) : error C2082: redefinition of formal parameter 'strbuf_empty_length'
f:\e\projects\lua-cjson\strbuf.h(91) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(95) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(96) : error C2082: redefinition of formal parameter 'strbuf_ensure_empty_length'
f:\e\projects\lua-cjson\strbuf.h(96) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(101) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(102) : error C2082: redefinition of formal parameter 'strbuf_empty_ptr'
f:\e\projects\lua-cjson\strbuf.h(102) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(106) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(107) : error C2082: redefinition of formal parameter 'strbuf_extend_length'
f:\e\projects\lua-cjson\strbuf.h(107) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(111) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(112) : error C2082: redefinition of formal parameter 'strbuf_length'
f:\e\projects\lua-cjson\strbuf.h(112) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(116) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(117) : error C2082: redefinition of formal parameter 'strbuf_append_char'
f:\e\projects\lua-cjson\strbuf.h(117) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(122) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(123) : error C2085: 'strbuf_append_char_unsafe' : not in formal parameter list
f:\e\projects\lua-cjson\strbuf.h(123) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(127) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(128) : error C2082: redefinition of formal parameter 'strbuf_append_mem'
f:\e\projects\lua-cjson\strbuf.h(128) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(134) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(135) : error C2085: 'strbuf_append_mem_unsafe' : not in formal parameter list
f:\e\projects\lua-cjson\strbuf.h(135) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(140) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(141) : error C2082: redefinition of formal parameter 'strbuf_ensure_null'
f:\e\projects\lua-cjson\strbuf.h(141) : error C2143: syntax error : missing ';' before '{'
f:\e\projects\lua-cjson\strbuf.h(145) : error C2054: expected '(' to follow 'inline'
f:\e\projects\lua-cjson\strbuf.h(146) : error C2082: redefinition of formal parameter 'strbuf_string'
f:\e\projects\lua-cjson\strbuf.h(146) : error C2143: syntax error : missing ';' before '{'
lua_cjson.c(1128) : error C2054: expected '(' to follow 'inline'
lua_cjson.c(1129) : error C2085: 'json_decode_ascend' : not in formal parameter list
lua_cjson.c(1129) : error C2143: syntax error : missing ';' before '{'
Error: Build error: Failed compiling object lua_cjson.obj
We don't have to duplicate definiations in CMakeLists.txt and rockspec.
I think #1 is a better choice.
I tried using both x86 and x64 for compilation