blindfix for VS macro redefinition

This commit is contained in:
Yann Collet
2020-05-11 19:29:36 -07:00
parent 76e726e3be
commit 20bd246045
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ typedef ZSTD_ErrorCode ERR_enum;
/*-****************************************
* Error codes handling
******************************************/
#undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
#undef ERROR /* already defined on Visual Studio */
#define ERROR(name) ZSTD_ERROR(name)
#define ZSTD_ERROR(name) ((size_t)-PREFIX(name))