src/video/SDL_gamma.c
changeset 2756 a98604b691c8
parent 2735 204be4fc2726
child 2859 99210400e8b9
equal deleted inserted replaced
2755:2a3ec308d995 2756:a98604b691c8
    21 */
    21 */
    22 #include "SDL_config.h"
    22 #include "SDL_config.h"
    23 
    23 
    24 /* Gamma correction support */
    24 /* Gamma correction support */
    25 
    25 
    26 #ifdef HAVE_MATH_H
    26 #include "../libm/math.h"
    27 #include <math.h>               /* Used for calculating gamma ramps */
       
    28 #else
       
    29 /* Math routines from uClibc: http://www.uclibc.org */
       
    30 #include "math_private.h"
       
    31 #include "e_sqrt.h"
       
    32 #include "e_pow.h"
       
    33 #include "e_log.h"
       
    34 #define pow(x, y)	__ieee754_pow(x, y)
       
    35 #define log(x)		__ieee754_log(x)
       
    36 #endif
       
    37 
    27 
    38 #include "SDL_sysvideo.h"
    28 #include "SDL_sysvideo.h"
    39 
    29 
    40 
    30 
    41 static void
    31 static void