aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-01-31 23:33:53 +0000
committerBrian Paul <[email protected]>2000-01-31 23:33:53 +0000
commit075398b8795a014ec9852ae7f13db1e1cc0e15d5 (patch)
tree0ccc3dc3663fae43f2c99701d4aed2b344024d3e /src
parent9560f05deffaf0321bba1bd0fcc8eeef4199e6e0 (diff)
defined FLT_MIN if undefined
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/light.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/main/light.c b/src/mesa/main/light.c
index d8cfd20bde8..a6696b1e1ae 100644
--- a/src/mesa/main/light.c
+++ b/src/mesa/main/light.c
@@ -1,4 +1,4 @@
-/* $Id: light.c,v 1.11 2000/01/13 00:29:02 brianp Exp $ */
+/* $Id: light.c,v 1.12 2000/01/31 23:33:53 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -43,6 +43,11 @@
#endif
+/* XXX this is a bit of a hack needed for compilation within XFree86 */
+#ifndef FLT_MIN
+#define FLT_MIN 1e-37
+#endif
+
void
_mesa_ShadeModel( GLenum mode )