1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

_CRT_SECURE_NO_WARNINGS moved to util.h

This commit is contained in:
Przemyslaw Skibinski
2016-12-21 13:47:11 +01:00
parent 2f6ccee6af
commit e679741b18
9 changed files with 3 additions and 18 deletions

View File

@ -29,6 +29,8 @@ extern "C" {
* Compiler Options
****************************************/
#if defined(_MSC_VER)
# define _CRT_SECURE_NO_WARNINGS /* Disable Visual Studio warning messages for fopen, strncpy, strerror */
# define _CRT_SECURE_NO_DEPRECATE /* VS2005 */
# if (_MSC_VER <= 1800) /* (1800 = Visual Studio 2013) */
# define snprintf sprintf_s /* snprintf unsupported by Visual <= 2013 */
# endif