mirror of
https://github.com/facebook/zstd.git
synced 2025-08-07 06:23:00 +03:00
fixed compilation with Visual in C++ mode
This commit is contained in:
@@ -26,8 +26,10 @@
|
|||||||
/* *************************************
|
/* *************************************
|
||||||
* Compiler Options
|
* 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
|
* Dependencies
|
||||||
|
@@ -29,14 +29,15 @@
|
|||||||
- zstd source repository : https://github.com/Cyan4973/zstd
|
- zstd source repository : https://github.com/Cyan4973/zstd
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdarg.h> /* va_list, for z_gzprintf */
|
#include <stdio.h> /* vsprintf */
|
||||||
|
#include <stdarg.h> /* va_list, for z_gzprintf */
|
||||||
#include <zlib.h>
|
#include <zlib.h>
|
||||||
#include "zstd_zlibwrapper.h"
|
#include "zstd_zlibwrapper.h"
|
||||||
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_MAGICNUMBER */
|
#define ZSTD_STATIC_LINKING_ONLY /* ZSTD_MAGICNUMBER */
|
||||||
#include "zstd.h"
|
#include "zstd.h"
|
||||||
#define ZBUFF_STATIC_LINKING_ONLY /* ZBUFF_createCCtx_advanced */
|
#define ZBUFF_STATIC_LINKING_ONLY /* ZBUFF_createCCtx_advanced */
|
||||||
#include "zbuff.h"
|
#include "zbuff.h"
|
||||||
#include "zstd_internal.h" /* defaultCustomMem */
|
#include "zstd_internal.h" /* defaultCustomMem */
|
||||||
|
|
||||||
|
|
||||||
#define Z_INFLATE_SYNC 8
|
#define Z_INFLATE_SYNC 8
|
||||||
|
Reference in New Issue
Block a user