提交 e872d402 编写于 作者: M Max Bruckner

MSVC: Disable deprecation warnings for C89 functions

C89 sadly doesn't provide safe alternatives for strcpy, sprintf and the
like.
上级 04e27dc8
......@@ -23,6 +23,11 @@
/* cJSON */
/* JSON parser in C. */
/* disable warnings about old C89 functions in MSVC */
#if !defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
#define _CRT_SECURE_NO_DEPRECATE
#endif
#ifdef __GNUC__
#pragma GCC visibility push(default)
#endif
......
......@@ -20,6 +20,10 @@
THE SOFTWARE.
*/
/* disable warnings about old C89 functions in MSVC */
#if !defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
#define _CRT_SECURE_NO_DEPRECATE
#endif
#pragma GCC visibility push(default)
#include <ctype.h>
#include <string.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册