Open Jedzia opened 8 years ago
~~Hey, thank you! After the change, it compiled but I got this: warning:
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
It you have a simple solution to solve (and not hide) this warning, I will take it ;)~~
Wrong post, I wanted to comment on this > #44
Don't believe it but finally, Visual Studio 14 defines snprintf()! It restricts redefinition, this is added in stdio.h:
so we get
...\ucrt\stdio.h(1927): fatal error C1189: #error: Macro definition of snprintf conflicts with Standard Library function declaration [...\lua-cjson\build\cjson.vcxproj
errors.My solution to this was skipping of
add_definitions(-Dstrncasecmp=_strnicmp)
for MSVC14. Patch follows:Keep on coding, Jedzia;)