removed support for old error code enums from lz4frame_static.h, to free up namespace.
authorYann Collet <cyan@fb.com>
Fri, 4 Nov 2016 23:29:43 +0000 (16:29 -0700)
committerYann Collet <cyan@fb.com>
Fri, 4 Nov 2016 23:29:43 +0000 (16:29 -0700)
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.

lib/lz4frame_static.h

index fab3def..0c154a3 100644 (file)
@@ -64,7 +64,7 @@ extern "C" {
         ITEM(ERROR_headerChecksum_invalid) ITEM(ERROR_contentChecksum_invalid) \
         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
 #  define LZ4F_GENERATE_ENUM(ENUM) LZ4F_##ENUM, ENUM = LZ4F_##ENUM,
 #else