1
0
mirror of https://github.com/facebook/zstd.git synced 2025-08-05 19:15:58 +03:00

fixed compilation with Visual in C++ mode

This commit is contained in:
inikep
2016-08-10 14:28:47 +02:00
parent 48849f86f0
commit 3d2c58c3a9
2 changed files with 7 additions and 4 deletions

View File

@@ -26,8 +26,10 @@
/* *************************************
* Compiler Options
***************************************/
#define _CRT_SECURE_NO_WARNINGS /* removes Visual warning on strerror() */
#if defined(_MSC_VER)
# define _CRT_SECURE_NO_WARNINGS /* removes Visual warning on strerror() */
# define _CRT_SECURE_NO_DEPRECATE /* removes VS2005 warning on strerror() */
#endif
/*-************************************
* Dependencies

View File

@@ -29,6 +29,7 @@
- zstd source repository : https://github.com/Cyan4973/zstd
*/
#include <stdio.h> /* vsprintf */
#include <stdarg.h> /* va_list, for z_gzprintf */
#include <zlib.h>
#include "zstd_zlibwrapper.h"