Mercurial > sdl-ios-xcode
diff src/audio/SDL_audiocvt.c @ 3032:77c3e67f0740
Fixed Visual C++ build
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 12 Jan 2009 08:46:28 +0000 |
parents | f3dcf04412cf |
children | 62d4992e5a92 |
line wrap: on
line diff
--- a/src/audio/SDL_audiocvt.c Mon Jan 12 08:28:17 2009 +0000 +++ b/src/audio/SDL_audiocvt.c Mon Jan 12 08:46:28 2009 +0000 @@ -937,7 +937,7 @@ cvt->filters[cvt->filter_index++] = filter; if (src_rate < dst_rate) { const double mult = ((double) dst_rate) / ((double) src_rate); - cvt->len_mult *= (int) ceil(mult); /* !!! FIXME: C runtime dependency. */ + cvt->len_mult *= (int) SDL_ceil(mult); cvt->len_ratio *= mult; } else { cvt->len_ratio /= ((double) src_rate) / ((double) dst_rate);