1
0
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:
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 * 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

View File

@@ -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