SDL-mirror/src
Sam Lantinga ef7498a5c3 Fixed bug 2274 - SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined
Ghassan Al-Mashareqa

The SDL_ceil function is implemented incorrectly when HAVE_CEIL is not defined (HAVE_LIBC not defined).

The following code:

    double val = SDL_ceil(2.3);
    printf("%g", val);

prints "2.0", as STD_ceil is defined as:

    double
    SDL_ceil(double x)
    {
    #ifdef HAVE_CEIL
        return ceil(x);
    #else
        return (double)(int)((x)+0.5);
    #endif /* HAVE_CEIL */
    }

This functions is used in the SDL_BuildAudioResampleCVT function of the audio subsystem (SDL_audiocvt.c), and causes a bug in that function.
2013-11-27 00:29:46 -08:00
..
atomic Fixed bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings 2013-10-20 21:56:15 -07:00
audio Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
core Fixed bug 2258 - Crash when using Android clipboard 2013-11-23 23:38:16 +01:00
cpuinfo Initialize MEMORYSTATUSEX size before GlobalMemoryStatusEx() (thanks, Justin!). 2013-10-23 19:52:14 -04:00
events Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
file Fixed building using MinGW 2013-10-17 23:02:29 -07:00
filesystem Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
haptic Moved a SDL_SetError() call elsewhere to avoid triggering it needlessly. 2013-10-23 15:54:12 -04:00
joystick Removed include of no more needed header. 2013-11-23 18:29:36 +01:00
libm Fixed bug 2245 - add SDL_acos and SDL_asin 2013-11-16 18:56:02 -08:00
loadso Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
main Fixed comment typo. 2013-11-14 20:24:40 -05:00
power Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
render OpenGL ES support for Windows 2013-11-22 13:24:53 -03:00
stdlib Fixed bug 2274 - SDL_ceil is incorrectly implemented when HAVE_LIBC is not defined 2013-11-27 00:29:46 -08:00
test Accidentally committed debug code 2013-11-18 20:22:36 -08:00
thread Added SDL_DetachThread() API. 2013-11-14 00:52:39 -05:00
timer Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
video [Android] Fixes #2228, reworked touch code 2013-11-25 12:28:09 -03:00
SDL.c Renamed things named after BeOS to be named after Haiku instead. 2013-11-14 11:51:24 -05:00
SDL_assert.c Fixed building using MinGW 2013-10-17 23:02:29 -07:00
SDL_assert_c.h Removed SDL_AssertionsInit(). It's a no-op, let's keep it that way. :) 2013-08-07 11:00:44 -07:00
SDL_error.c
SDL_error_c.h
SDL_hints.c Christoph Mallon: Remove pointless if (x) before SDL_free(x) 2013-08-29 08:29:21 -07:00
SDL_log.c Fixed building using MinGW 2013-10-17 23:02:29 -07:00