fixed VS 2015 'ERROR already defined', reported by Rich Geldreich
This commit is contained in:
@@ -64,6 +64,9 @@ extern "C" {
|
|||||||
******************************************/
|
******************************************/
|
||||||
#define PREFIX(name) ZSTD_error_##name
|
#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(name) (size_t)-PREFIX(name)
|
||||||
|
|
||||||
#define ERROR_LIST(ITEM) \
|
#define ERROR_LIST(ITEM) \
|
||||||
|
|||||||
Reference in New Issue
Block a user