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 LIZARDMT_isError(size_t code)
*/
const char *LIZARDMT_getErrorString(size_t code)
{
static const char *noErrorCode = "Unspecified lizardmt error code";
if (LizardF_isError(lizardmt_errcode))
return LizardF_getErrorName(lizardmt_errcode);
static const char *noErrorCode = "Unspecified lizardmt error code";
switch ((LIZARDMT_ErrorCode) (0 - code)) {
case PREFIX(no_error):
return "No error detected";