# HG changeset patch # User Sam Lantinga # Date 1139246807 0 # Node ID 37d43bd654d7532a24a9d8f6dd8c2f5a1d811fcb # Parent 39b0d60d3f501d4ca30eb6753125bf13efd2c3ba Proper credit to uClibc :) diff -r 39b0d60d3f50 -r 37d43bd654d7 src/video/SDL_gamma.c --- a/src/video/SDL_gamma.c Mon Feb 06 08:58:44 2006 +0000 +++ b/src/video/SDL_gamma.c Mon Feb 06 17:26:47 2006 +0000 @@ -26,6 +26,14 @@ #ifdef HAVE_MATH_H #include /* Used for calculating gamma ramps */ +#else +/* Math routines from uClibc: http://www.uclibc.org */ +#include "math_private.h" +#include "e_sqrt.h" +#include "e_pow.h" +#include "e_log.h" +#define pow(x, y) __ieee754_pow(x, y) +#define log(x) __ieee754_log(x) #endif #include "SDL_error.h" @@ -33,14 +41,6 @@ #include "SDL_string.h" #include "SDL_sysvideo.h" -#ifndef HAVE_MATH_H -#include "math_private.h" -#include "e_sqrt.h" -#include "e_pow.h" -#include "e_log.h" -#define pow(x, y) __ieee754_pow(x, y) -#define log(x) __ieee754_log(x) -#endif static void CalculateGammaRamp(float gamma, Uint16 *ramp) {