Mercurial > sdl-ios-xcode
changeset 1334:37d43bd654d7
Proper credit to uClibc :)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 06 Feb 2006 17:26:47 +0000 |
parents | 39b0d60d3f50 |
children | c39265384763 |
files | src/video/SDL_gamma.c |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 <math.h> /* 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) {