mpx / lua-cjson

Lua CJSON is a fast JSON encoding/parsing module for Lua
https://kyne.au/~mark/software/lua-cjson.php
MIT License
933 stars 478 forks source link

Work around MSVC's C99 support #20

Closed qi7chen closed 8 years ago

qi7chen commented 9 years ago

1, inline keyword is only available in C++, define to __inline instead. 2, Visual C++ doesn't supply snprintf and strncasecmp, define to _snprintf and _strnicmp instead. 3, define _CRT_SECURE_NO_WARNINGS to disable deprecation warnings.

qi7chen commented 9 years ago

Tested under Visual C++ 2012, Visual C++ 2013 with CMake 3.0

mpx commented 8 years ago

Thanks! I have merged these changes.

spacewander commented 8 years ago

Note that isnan is not supported yet under Visual C++ lower than 2013. Some of our windows servers are still running with it. Still vote for #1 .