diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-11-09 15:38:02 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2017-11-09 15:38:02 +0000 |
| commit | 653667f9dc9cc0169deeca1a82a60c2e91d5683a (patch) | |
| tree | ac900fcbc6efae43f50daa8009f04669eeebe02d /lib/common/error_private.h | |
| parent | 299df5d48ce3c064ef926ac7814c278bcdc92db0 (diff) | |
import zstd 1.3.2vendor/zstd/1.3.2
Diffstat (limited to 'lib/common/error_private.h')
| -rw-r--r-- | lib/common/error_private.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/common/error_private.h b/lib/common/error_private.h index 9dd9a87cfac8..0d2fa7e34b01 100644 --- a/lib/common/error_private.h +++ b/lib/common/error_private.h @@ -5,6 +5,7 @@ * 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)); } |
