removed support for old error code enums from lz4frame_static.h, to free up namespace.
note : lz4frame_static.h does not guaranteed API stability. note 2 : the macro to enable old error code enums is still present. Just needs to comment one line to re-enable them.
This commit is contained in:
parent
473acf5aa9
commit
079d5dd54b
@ -64,7 +64,7 @@ extern "C" {
|
|||||||
ITEM(ERROR_headerChecksum_invalid) ITEM(ERROR_contentChecksum_invalid) \
|
ITEM(ERROR_headerChecksum_invalid) ITEM(ERROR_contentChecksum_invalid) \
|
||||||
ITEM(ERROR_maxCode)
|
ITEM(ERROR_maxCode)
|
||||||
|
|
||||||
//#define LZ4F_DISABLE_OLD_ENUMS /* uncomment to disable deprecated enums */
|
#define LZ4F_DISABLE_OLD_ENUMS /* comment to enable deprecated enums */
|
||||||
#ifndef LZ4F_DISABLE_OLD_ENUMS
|
#ifndef LZ4F_DISABLE_OLD_ENUMS
|
||||||
# define LZ4F_GENERATE_ENUM(ENUM) LZ4F_##ENUM, ENUM = LZ4F_##ENUM,
|
# define LZ4F_GENERATE_ENUM(ENUM) LZ4F_##ENUM, ENUM = LZ4F_##ENUM,
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user