src/stdlib/SDL_stdlib.c
changeset 9075 257a6793aaf5
parent 9015 45f11ff360a8
child 9080 2e4e71ec140f
     1.1 --- a/src/stdlib/SDL_stdlib.c	Sat Aug 16 23:17:47 2014 -0700
     1.2 +++ b/src/stdlib/SDL_stdlib.c	Sat Aug 16 23:23:15 2014 -0700
     1.3 @@ -170,6 +170,16 @@
     1.4  }
     1.5  
     1.6  double
     1.7 +SDL_round(double x)
     1.8 +{
     1.9 +#if defined(HAVE_ROUND)
    1.10 +    return round(x);
    1.11 +#else
    1.12 +    return SDL_uclibc_round(x);
    1.13 +#endif /* HAVE_ROUND */
    1.14 +}
    1.15 +
    1.16 +double
    1.17  SDL_scalbn(double x, int n)
    1.18  {
    1.19  #if defined(HAVE_SCALBN)