Proper credit to uClibc :)
authorSam Lantinga <slouken@libsdl.org>
Mon, 06 Feb 2006 17:26:47 +0000
changeset 1334 37d43bd654d7
parent 1333 39b0d60d3f50
child 1335 c39265384763
Proper credit to uClibc :)
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 <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)
 {