aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/zstd/error_private.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-20 07:58:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-20 07:58:12 +0100
commit0050cedd31961425907fc655056ad36bb73b61fe (patch)
treeff5af69f2b56ec80a89f95cf56542c1ba696d155 /contrib/zstd/error_private.h
parent8e28ab597f8cd87358c9b5a674cfbdd789385dfb (diff)
downloadrspamd-0050cedd31961425907fc655056ad36bb73b61fe.tar.gz
rspamd-0050cedd31961425907fc655056ad36bb73b61fe.zip
[Minor] Update bundled zstd
Diffstat (limited to 'contrib/zstd/error_private.h')
-rw-r--r--contrib/zstd/error_private.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/contrib/zstd/error_private.h b/contrib/zstd/error_private.h
index 1bc2e4954..0d2fa7e34 100644
--- a/contrib/zstd/error_private.h
+++ b/contrib/zstd/error_private.h
@@ -1,10 +1,11 @@
-/**
+/*
* Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
* All rights reserved.
*
- * This source code is licensed under the BSD-style license found in the
- * LICENSE file in the root directory of this source tree. An additional grant
- * of patent rights can be found in the PATENTS file in the same directory.
+ * This source code is licensed under both the BSD-style license (found in the
+ * LICENSE file in the root directory of this source tree) and the GPLv2 (found
+ * in the COPYING file in the root directory of this source tree).
+ * You may select, at your option, one of the above-listed licenses.
*/
/* Note : this module is expected to remain private, do not expose it */
@@ -48,10 +49,9 @@ typedef ZSTD_ErrorCode ERR_enum;
/*-****************************************
* Error codes handling
******************************************/
-#ifdef ERROR
-# undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
-#endif
-#define ERROR(name) ((size_t)-PREFIX(name))
+#undef ERROR /* reported already defined on VS 2015 (Rich Geldreich) */
+#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)); }