Made #if defined(X) consistent
authorSam Lantinga <slouken@libsdl.org>
Mon, 10 Oct 2016 02:58:29 -0700
changeset 10505fd70d94948bc
parent 10504 9f8284fde4ea
child 10506 84611383c7ef
Made #if defined(X) consistent
src/stdlib/SDL_stdlib.c
     1.1 --- a/src/stdlib/SDL_stdlib.c	Mon Oct 10 02:58:12 2016 -0700
     1.2 +++ b/src/stdlib/SDL_stdlib.c	Mon Oct 10 02:58:29 2016 -0700
     1.3 @@ -34,7 +34,7 @@
     1.4  double
     1.5  SDL_atan(double x)
     1.6  {
     1.7 -#ifdef HAVE_ATAN
     1.8 +#if defined(HAVE_ATAN)
     1.9      return atan(x);
    1.10  #else
    1.11      return SDL_uclibc_atan(x);
    1.12 @@ -90,7 +90,7 @@
    1.13  double
    1.14  SDL_ceil(double x)
    1.15  {
    1.16 -#ifdef HAVE_CEIL
    1.17 +#if defined(HAVE_CEIL)
    1.18      return ceil(x);
    1.19  #else
    1.20      double integer = SDL_floor(x);
    1.21 @@ -127,7 +127,7 @@
    1.22  float
    1.23  SDL_cosf(float x)
    1.24  {
    1.25 -#ifdef HAVE_COSF
    1.26 +#if defined(HAVE_COSF)
    1.27      return cosf(x);
    1.28  #else
    1.29      return (float)SDL_cos((double)x);
    1.30 @@ -199,7 +199,7 @@
    1.31  float 
    1.32  SDL_sinf(float x)
    1.33  {
    1.34 -#ifdef HAVE_SINF
    1.35 +#if defined(HAVE_SINF)
    1.36      return sinf(x);
    1.37  #else
    1.38      return (float)SDL_sin((double)x);
    1.39 @@ -248,14 +248,14 @@
    1.40  
    1.41  int SDL_abs(int x)
    1.42  {
    1.43 -#ifdef HAVE_ABS
    1.44 +#if defined(HAVE_ABS)
    1.45      return abs(x);
    1.46  #else
    1.47      return ((x) < 0 ? -(x) : (x));
    1.48  #endif
    1.49  }
    1.50  
    1.51 -#ifdef HAVE_CTYPE_H
    1.52 +#if defined(HAVE_CTYPE_H)
    1.53  int SDL_isdigit(int x) { return isdigit(x); }
    1.54  int SDL_isspace(int x) { return isspace(x); }
    1.55  int SDL_toupper(int x) { return toupper(x); }