From c13faa1b0f8712396abfa52816dfa4d2db89abce Mon Sep 17 00:00:00 2001 From: inikep Date: Mon, 5 Sep 2016 13:25:07 +0200 Subject: [PATCH] legacy decoders: restored #include for VC++ --- lib/legacy/zstd_v01.c | 2 +- lib/legacy/zstd_v02.c | 8 ++++++++ lib/legacy/zstd_v03.c | 9 +++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/legacy/zstd_v01.c b/lib/legacy/zstd_v01.c index 297eee70..746d7bbe 100644 --- a/lib/legacy/zstd_v01.c +++ b/lib/legacy/zstd_v01.c @@ -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, const void* src, size_t srcSize) { diff --git a/lib/legacy/zstd_v02.c b/lib/legacy/zstd_v02.c index fd40dd04..de1592e1 100644 --- a/lib/legacy/zstd_v02.c +++ b/lib/legacy/zstd_v02.c @@ -13,6 +13,14 @@ #include "error_private.h" +/****************************************** +* Compiler-specific +******************************************/ +#if defined(_MSC_VER) /* Visual Studio */ +# include /* _byteswap_ulong */ +# include /* _byteswap_* */ +#endif + /* ****************************************************************** mem.h diff --git a/lib/legacy/zstd_v03.c b/lib/legacy/zstd_v03.c index 054f7761..caad331d 100644 --- a/lib/legacy/zstd_v03.c +++ b/lib/legacy/zstd_v03.c @@ -13,6 +13,15 @@ #include "error_private.h" +/****************************************** +* Compiler-specific +******************************************/ +#if defined(_MSC_VER) /* Visual Studio */ +# include /* _byteswap_ulong */ +# include /* _byteswap_* */ +#endif + + /* ****************************************************************** mem.h