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 LZ5MT_isError(size_t code)
*/
const char *LZ5MT_getErrorString(size_t code)
{
static const char *noErrorCode = "Unspecified lz5mt error code";
if (LZ5F_isError(lz5mt_errcode))
return LZ5F_getErrorName(lz5mt_errcode);
static const char *noErrorCode = "Unspecified lz5mt error code";
switch ((LZ5MT_ErrorCode) (0 - code)) {
case PREFIX(no_error):
return "No error detected";