MSVC: Disable deprecation warnings for C89 functions

C89 sadly doesn't provide safe alternatives for strcpy, sprintf and the
like.
This commit is contained in:
Max Bruckner
2017-06-28 17:28:50 +02:00
parent 04e27dc8c5
commit e872d40223
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -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