fixed VS 2015 'ERROR already defined', reported by Rich Geldreich

This commit is contained in:
Yann Collet 2016-01-21 14:32:41 +01:00
parent 223f6337f8
commit 74ce8e812c

View File

@ -64,6 +64,9 @@ extern "C" {
******************************************/
#define PREFIX(name) ZSTD_error_##name
#ifdef ERROR
# undef ERROR /* reported already defined on VS 2015 by Rich Geldreich */
#endif
#define ERROR(name) (size_t)-PREFIX(name)
#define ERROR_LIST(ITEM) \