fix compression, rename enum values
This commit is contained in:
parent
7b6b4ea806
commit
6834bb084b
10 changed files with 119 additions and 123 deletions
|
@ -19,11 +19,10 @@ sort_by = "Name"
|
|||
usize_is_size_t = true
|
||||
|
||||
[defines]
|
||||
"feature = compression-gz" = "SP2_FEATURE_compression_gz"
|
||||
"feature = compression-bz" = "SP2_FEATURE_compression_bz"
|
||||
"feature = compression-lz" = "SP2_FEATURE_compression_lz"
|
||||
"feature = compression-zs" = "SP2_FEATURE_compression_zs"
|
||||
#"feature = c-api" = "SP2_FEATURE_c-api"
|
||||
"feature = compression_zlib" = "SP2_FEATURE_compression_zlib"
|
||||
"feature = compression_bzip2" = "SP2_FEATURE_compression_bzip2"
|
||||
"feature = compression_lzma" = "SP2_FEATURE_compression_lzma"
|
||||
"feature = compression_zstd" = "SP2_FEATURE_compression_zstd"
|
||||
|
||||
[export]
|
||||
prefix = "sp2_"
|
||||
|
|
|
@ -45,17 +45,17 @@ enum sp2_CompressionCode
|
|||
#endif // __cplusplus
|
||||
{
|
||||
Uncompressed = 0,
|
||||
#if defined(SP2_FEATURE_compression_gz)
|
||||
Gz = 26490,
|
||||
#if defined(SP2_FEATURE_compression_zlib)
|
||||
Zlib = 26490,
|
||||
#endif
|
||||
#if defined(SP2_FEATURE_compression_bz)
|
||||
Bz = 25210,
|
||||
#if defined(SP2_FEATURE_compression_bzip2)
|
||||
Bzip2 = 25210,
|
||||
#endif
|
||||
#if defined(SP2_FEATURE_compression_lz)
|
||||
Lz = 27770,
|
||||
#if defined(SP2_FEATURE_compression_lzma)
|
||||
Lzma = 27770,
|
||||
#endif
|
||||
#if defined(SP2_FEATURE_compression_zs)
|
||||
Zs = 31347,
|
||||
#if defined(SP2_FEATURE_compression_zstd)
|
||||
Zstd = 31347,
|
||||
#endif
|
||||
};
|
||||
#ifndef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue