Proper credit to uClibc :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 06 Feb 2006 17:26:47 +0000
changeset 133437d43bd654d7
parent 1333 39b0d60d3f50
child 1335 c39265384763
Proper credit to uClibc :)
src/video/SDL_gamma.c
     1.1 --- a/src/video/SDL_gamma.c	Mon Feb 06 08:58:44 2006 +0000
     1.2 +++ b/src/video/SDL_gamma.c	Mon Feb 06 17:26:47 2006 +0000
     1.3 @@ -26,6 +26,14 @@
     1.4  
     1.5  #ifdef HAVE_MATH_H
     1.6  #include <math.h>	/* Used for calculating gamma ramps */
     1.7 +#else
     1.8 +/* Math routines from uClibc: http://www.uclibc.org */
     1.9 +#include "math_private.h"
    1.10 +#include "e_sqrt.h"
    1.11 +#include "e_pow.h"
    1.12 +#include "e_log.h"
    1.13 +#define pow(x, y)	__ieee754_pow(x, y)
    1.14 +#define log(x)		__ieee754_log(x)
    1.15  #endif
    1.16  
    1.17  #include "SDL_error.h"
    1.18 @@ -33,14 +41,6 @@
    1.19  #include "SDL_string.h"
    1.20  #include "SDL_sysvideo.h"
    1.21  
    1.22 -#ifndef HAVE_MATH_H
    1.23 -#include "math_private.h"
    1.24 -#include "e_sqrt.h"
    1.25 -#include "e_pow.h"
    1.26 -#include "e_log.h"
    1.27 -#define pow(x, y)	__ieee754_pow(x, y)
    1.28 -#define log(x)		__ieee754_log(x)
    1.29 -#endif
    1.30  
    1.31  static void CalculateGammaRamp(float gamma, Uint16 *ramp)
    1.32  {