aboutsummaryrefslogtreecommitdiffstats
path: root/progs/demos
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2006-04-13 01:49:45 +0000
committerBrian Paul <[email protected]>2006-04-13 01:49:45 +0000
commitc4a486421002c170036859511e485c179471b6aa (patch)
treede6ed9c9a458c2b15a1f78eb0ebb677064c099e2 /progs/demos
parentc82eadd1578d5a098d22225bf9fb61dc148f25e8 (diff)
compile fix from Dan Schikore
Diffstat (limited to 'progs/demos')
-rw-r--r--progs/demos/ray.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/demos/ray.c b/progs/demos/ray.c
index eb1d19f8632..c2d8e4f545e 100644
--- a/progs/demos/ray.c
+++ b/progs/demos/ray.c
@@ -49,7 +49,9 @@ static GLint Frames = 0;
#define clamp255(a) ( (a)<(0.0f) ? (0.0f) : ((a)>(255.0f) ? (255.0f) : (a)) )
+#ifndef fabs
#define fabs(x) ((x)<0.0f?-(x):(x))
+#endif
#define vequ(a,b) { (a)[0]=(b)[0]; (a)[1]=(b)[1]; (a)[2]=(b)[2]; }
#define vsub(a,b,c) { (a)[0]=(b)[0]-(c)[0]; (a)[1]=(b)[1]-(c)[1]; (a)[2]=(b)[2]-(c)[2]; }