projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82eadd
)
compile fix from Dan Schikore
author
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 13 Apr 2006 01:49:45 +0000
(
01:49
+0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Thu, 13 Apr 2006 01:49:45 +0000
(
01:49
+0000)
progs/demos/ray.c
patch
|
blob
|
history
diff --git
a/progs/demos/ray.c
b/progs/demos/ray.c
index eb1d19f86325cfdc3230f354bb1c5fbe49a2b3f1..c2d8e4f545e352207f7628e470388eb97a73b828 100644
(file)
--- 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]; }