[threading] Fix ERROR macro after including windows.h

This commit is contained in:
Nick Terrell
2017-08-28 16:25:02 -07:00
parent db3f5372df
commit 7c365eb02c
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -51,7 +51,8 @@ typedef ZSTD_ErrorCode ERR_enum;
#ifdef ERROR
# undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
#endif
#define ERROR(name) ((size_t)-PREFIX(name))
#define ERROR(name) ZSTD_ERROR(name)
#define ZSTD_ERROR(name) ((size_t)-PREFIX(name))
ERR_STATIC unsigned ERR_isError(size_t code) { return (code > ERROR(maxCode)); }