Changeset 1f799c2 for thirdparty


Ignore:
Timestamp:
09/28/18 16:51:09 (6 years ago)
Author:
Hal Finkel <hfinkel@…>
Branches:
master, pympi
Children:
dc29e2e
Parents:
03ba282
git-author:
Hal Finkel <hfinkel@…> (09/28/18 16:51:09)
git-committer:
Hal Finkel <hfinkel@…> (09/28/18 16:51:09)
Message:

make new version of SZ compile with older zstd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • thirdparty/SZ/sz/src/utility.c

    r03ba282 r1f799c2  
    156156int is_lossless_compressed_data(unsigned char* compressedBytes, size_t cmpSize) 
    157157{ 
     158#if ZSTD_VERSION_NUMBER >= 10300 
    158159        int frameContentSize = ZSTD_getFrameContentSize(compressedBytes, cmpSize); 
    159160        if(frameContentSize != ZSTD_CONTENTSIZE_ERROR) 
    160161                return ZSTD_COMPRESSOR; 
     162#else 
     163        int frameContentSize = ZSTD_getDecompressedSize(compressedBytes, cmpSize); 
     164        if(frameContentSize == 0) 
     165                return ZSTD_COMPRESSOR; 
     166#endif 
    161167         
    162168        int flag = isZlibFormat(compressedBytes[0], compressedBytes[1]); 
Note: See TracChangeset for help on using the changeset viewer.