]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed VS 2015 'ERROR already defined', reported by Rich Geldreich
authorYann Collet <yann.collet.73@gmail.com>
Thu, 21 Jan 2016 13:32:41 +0000 (14:32 +0100)
committerYann Collet <yann.collet.73@gmail.com>
Thu, 21 Jan 2016 13:32:41 +0000 (14:32 +0100)
lib/error.h

index af3c1b5691d6cc084a6845fb7f58113c40a0c342..2ec64d0c42cbee51dd9809a187aba6aaa1421b4b 100644 (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) \