diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2001-11-13 21:37:04 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2001-11-13 21:37:04 +0000 |
commit | 40333b13c127bfb3c5f839fb59edbafa23d3ccbb (patch) | |
tree | 2079812c67c14f7bea796993278bbea2337e287e /src/libFLAC/fixed.c | |
parent | 8c9808fa7c5b32260582500000f3f2cb9261b5fe (diff) | |
download | flac-40333b13c127bfb3c5f839fb59edbafa23d3ccbb.tar.gz |
commit patch for compiling on mingw32
Diffstat (limited to 'src/libFLAC/fixed.c')
-rw-r--r-- | src/libFLAC/fixed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libFLAC/fixed.c b/src/libFLAC/fixed.c index b7ac8924..afa045f6 100644 --- a/src/libFLAC/fixed.c +++ b/src/libFLAC/fixed.c @@ -110,7 +110,7 @@ unsigned FLAC__fixed_compute_best_predictor_wide(const FLAC__int32 data[], unsig /* Estimate the expected number of bits per residual signal sample. */ /* 'total_error*' is linearly related to the variance of the residual */ /* signal, so we use it directly to compute E(|x|) */ -#ifdef _MSC_VER +#if defined _MSC_VER || defined __MINGW32__ /* with VC++ you have to spoon feed it the casting */ residual_bits_per_sample[0] = (FLAC__real)((data_len > 0 && total_error_0 > 0) ? log(M_LN2 * (double)(FLAC__int64)total_error_0 / (double) data_len) / M_LN2 : 0.0); residual_bits_per_sample[1] = (FLAC__real)((data_len > 0 && total_error_1 > 0) ? log(M_LN2 * (double)(FLAC__int64)total_error_1 / (double) data_len) / M_LN2 : 0.0); |