add msvc compiling fixes for zstdmt

This commit is contained in:
Tino Reichardt
2017-06-18 14:11:36 +02:00
parent 9ac1921f80
commit 2cea31c544
5 changed files with 10 additions and 4 deletions

View File

@@ -32,10 +32,11 @@ unsigned LZ4MT_isError(size_t code)
*/
const char *LZ4MT_getErrorString(size_t code)
{
static const char *noErrorCode = "Unspecified lz4mt error code";
if (LZ4F_isError(lz4mt_errcode))
return LZ4F_getErrorName(lz4mt_errcode);
static const char *noErrorCode = "Unspecified lz4mt error code";
switch ((LZ4MT_ErrorCode) (0 - code)) {
case PREFIX(no_error):
return "No error detected";