summaryrefslogtreecommitdiff
path: root/src/mesa/main/imports.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-08-14 12:43:56 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-08-14 12:44:41 +0100
commit68f602afb1423eecf6d56bc91fc8ac7419969990 (patch)
tree6ec81ef6d9d8da59cfbc47fa2795bc06ac9ad174 /src/mesa/main/imports.h
parent443a7e4e9a360acbc3e662c098be436f180bf81d (diff)
mesa: atan2f and powf need two args.
Diffstat (limited to 'src/mesa/main/imports.h')
-rw-r--r--src/mesa/main/imports.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h
index 846a9a0faf..42eba33d25 100644
--- a/src/mesa/main/imports.h
+++ b/src/mesa/main/imports.h
@@ -124,7 +124,7 @@ typedef union { GLfloat f; GLint i; } fi_type;
&& (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L))
#define acosf(f) ((float) acos(f))
#define asinf(f) ((float) asin(f))
-#define atan2f(f) ((float) atan2(f))
+#define atan2f(x,y) ((float) atan2(x,y))
#define atanf(f) ((float) atan(f))
#define cielf(f) ((float) ciel(f))
#define cosf(f) ((float) cos(f))
@@ -134,7 +134,7 @@ typedef union { GLfloat f; GLint i; } fi_type;
#define floorf(f) ((float) floor(f))
#define logf(f) ((float) log(f))
#define log2f(f) ((float) log2(f))
-#define powf(f) ((float) pow(f))
+#define powf(x,y) ((float) pow(x,y))
#define sinf(f) ((float) sin(f))
#define sinhf(f) ((float) sinh(f))
#define sqrtf(f) ((float) sqrt(f))