legacy decoders: restored #include <intrin.h> for VC++

This commit is contained in:
inikep 2016-09-05 13:25:07 +02:00
parent 8161e7321a
commit c13faa1b0f
3 changed files with 18 additions and 1 deletions

View File

@ -1557,7 +1557,7 @@ static size_t ZSTD_decodeLiteralsBlock(void* ctx,
} }
static size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr, size_t ZSTD_decodeSeqHeaders(int* nbSeq, const BYTE** dumpsPtr, size_t* dumpsLengthPtr,
FSE_DTable* DTableLL, FSE_DTable* DTableML, FSE_DTable* DTableOffb, FSE_DTable* DTableLL, FSE_DTable* DTableML, FSE_DTable* DTableOffb,
const void* src, size_t srcSize) const void* src, size_t srcSize)
{ {

View File

@ -13,6 +13,14 @@
#include "error_private.h" #include "error_private.h"
/******************************************
* Compiler-specific
******************************************/
#if defined(_MSC_VER) /* Visual Studio */
# include <stdlib.h> /* _byteswap_ulong */
# include <intrin.h> /* _byteswap_* */
#endif
/* ****************************************************************** /* ******************************************************************
mem.h mem.h

View File

@ -13,6 +13,15 @@
#include "error_private.h" #include "error_private.h"
/******************************************
* Compiler-specific
******************************************/
#if defined(_MSC_VER) /* Visual Studio */
# include <stdlib.h> /* _byteswap_ulong */
# include <intrin.h> /* _byteswap_* */
#endif
/* ****************************************************************** /* ******************************************************************
mem.h mem.h