diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2015-04-15 08:39:38 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2015-04-15 08:39:38 (GMT) |
commit | d37926b0b58b2eaae972946713b92d7c8bb8621f (patch) | |
tree | 832b91f783ff5b1c059ae4c153d34b45d14ca5a1 /lib/lz4frame_static.h | |
parent | 240b554412b240d7ed64a47015d13a541701869c (diff) | |
parent | 175890fe9bcd5029ffb33e2328037e0251e89ecb (diff) | |
download | lz4-d37926b0b58b2eaae972946713b92d7c8bb8621f.zip lz4-d37926b0b58b2eaae972946713b92d7c8bb8621f.tar.gz lz4-d37926b0b58b2eaae972946713b92d7c8bb8621f.tar.bz2 |
Merge pull request #95 from t-mat/issue/90
Modified lz4frame enum, by @t-mat
Diffstat (limited to 'lib/lz4frame_static.h')
-rw-r--r-- | lib/lz4frame_static.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/lz4frame_static.h b/lib/lz4frame_static.h index b608d23..afcf7da 100644 --- a/lib/lz4frame_static.h +++ b/lib/lz4frame_static.h @@ -64,7 +64,11 @@ extern "C" { ITEM(ERROR_header_checksum_invalid) \ ITEM(ERROR_maxCode) -#define LZ4F_GENERATE_ENUM(ENUM) ENUM, +#ifndef LZ4F_DISABLE_OLD_ENUMS +#define LZ4F_GENERATE_ENUM(ENUM) LZ4F_##ENUM, ENUM = LZ4F_##ENUM, +#else +#define LZ4F_GENERATE_ENUM(ENUM) LZ4F_##ENUM, +#endif typedef enum { LZ4F_LIST_ERRORS(LZ4F_GENERATE_ENUM) } LZ4F_errorCodes; /* enum is exposed, to handle specific errors; compare function result to -enum value */ |