Skip to content

Commit

Permalink
trying to fix build for 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
le0pard committed Feb 1, 2019
1 parent 1af19f2 commit abd7abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/webp_ffi/webp_ffi.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ int webp_encode(const char *in_file, const char *out_file, const FfiWebpEncodeCo
config.lossless = encode_config->lossless;
}

#ifdef __cplusplus
#if (ENC_MAJ_VERSION == 0 && ENC_MIN_VERSION > 4) || ENC_MAJ_VERSION > 0
if (encode_config->near_lossless >= 0 && encode_config->near_lossless <= 100){
config.near_lossless = encode_config->near_lossless;
config.lossless = 1; // use near-lossless only with lossless
Expand Down

0 comments on commit abd7abd

Please sign in to comment.