summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2015-02-24 09:26:41 -0700
committerBrian Paul <brianp@vmware.com>2015-02-24 14:44:19 -0700
commitf5816d77e24850c53a9dbc4add0e87bf3031e00a (patch)
tree10263034d5b56745d0873272120ae9c69821c859 /src/mesa/main
parentbad154e677fb2ee3b2fb976ac3843dad08c87ea2 (diff)
mesa: remove powf macro
Use the wrapper in c99_math.h if needed. Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/imports.h1
-rw-r--r--src/mesa/main/light.c1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 674761171e8..1a69fe73589 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -102,7 +102,6 @@ typedef union { GLfloat f; GLint i; GLuint u; } fi_type;
#define floorf(f) ((float) floor(f))
#define logf(f) ((float) log(f))
-#define powf(x,y) ((float) pow(x,y))
#define sqrtf(f) ((float) sqrt(f))
#endif
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index 7a1afd95930..9db0bff49a7 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -24,6 +24,7 @@
*/
+#include "c99_math.h"
#include "glheader.h"
#include "imports.h"
#include "context.h"